We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f58d839 + f883a73 commit d016821Copy full SHA for d016821
lib/index.js
@@ -1,10 +1,10 @@
1
import CleanCSS from 'clean-css';
2
-import loaderUtils from 'loader-utils';
+import { getOptions } from 'loader-utils';
3
4
export default function cleanCssLoader(css, map) {
5
const that = this;
6
const options = that.options ? that.options.module : false;
7
- const query = loaderUtils.getOptions(that);
+ const query = getOptions(that);
8
const cleanCssOptions = query || (options ? options.cleancss || options['clean-css'] || options.CleanCSS : false) || {};
9
const callback = that.async();
10
0 commit comments