Skip to content

Commit 4cdf7c2

Browse files
author
David Narbutovich
committed
Update readme
1 parent 9d45351 commit 4cdf7c2

File tree

1 file changed

+36
-36
lines changed

1 file changed

+36
-36
lines changed

README.md

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -36,27 +36,27 @@ const production = false;
3636
const cssUseList = ["style-loader", "css-loader"];
3737

3838
if (production) {
39-
cssUseList.push("clean-css-loader");
40-
// or with options
41-
cssUseList.push({
42-
loader: "clean-css-loader",
43-
options: {
44-
compatibility: "ie9",
45-
level: 2,
46-
inline: ["remote"]
47-
}
48-
});
39+
cssUseList.push("clean-css-loader");
40+
// or with options
41+
cssUseList.push({
42+
loader: "clean-css-loader",
43+
options: {
44+
compatibility: "ie9",
45+
level: 2,
46+
inline: ["remote"]
47+
}
48+
});
4949
}
5050

5151
module.exports = {
52-
module: {
53-
rules: [
54-
{
55-
test: /\.css$/,
56-
use: cssUseList
57-
}
58-
]
59-
}
52+
module: {
53+
rules: [
54+
{
55+
test: /\.css$/,
56+
use: cssUseList
57+
}
58+
]
59+
}
6060
};
6161
```
6262

@@ -100,23 +100,23 @@ More option: [https://github.com/jakubpawlowicz/clean-css#constructor-options](h
100100

101101
```js
102102
module.exports = {
103-
module: {
104-
loaders: [
105-
{
106-
test: /\.css$/,
107-
loader: "css!clean-css"
108-
},
109-
{
110-
test: /\.styl$/,
111-
loader: "css!clean-css!stylus?reslve url"
112-
}
113-
//...
114-
],
115-
// Example Set options (Key "clean-css" or cleancss or CleanCSS):
116-
"clean-css": {
117-
debug: true,
118-
mediaMerging: true
119-
}
120-
}
103+
module: {
104+
loaders: [
105+
{
106+
test: /\.css$/,
107+
loader: "css!clean-css"
108+
},
109+
{
110+
test: /\.styl$/,
111+
loader: "css!clean-css!stylus?reslve url"
112+
}
113+
//...
114+
],
115+
// Example Set options (Key "clean-css" or cleancss or CleanCSS):
116+
"clean-css": {
117+
debug: true,
118+
mediaMerging: true
119+
}
120+
}
121121
};
122122
```

0 commit comments

Comments
 (0)