Skip to content

Commit a0a3074

Browse files
docs: updated
1 parent 411f8f6 commit a0a3074

File tree

1 file changed

+0
-36
lines changed

1 file changed

+0
-36
lines changed

README.md

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ module.exports = {
5050
};
5151
```
5252

53-
**Only for webpack v4:**
54-
55-
Good loaders for requiring your assets are the [file-loader](https://github.com/webpack/file-loader) and the [url-loader](https://github.com/webpack/url-loader) which you should specify in your config (see [below](https://github.com/webpack-contrib/css-loader#assets)).
56-
5753
And run `webpack` via your preferred method.
5854

5955
### `toString`
@@ -1212,30 +1208,6 @@ module.exports = {
12121208
};
12131209
```
12141210

1215-
**For webpack v4:**
1216-
1217-
**webpack.config.js**
1218-
1219-
```js
1220-
module.exports = {
1221-
module: {
1222-
rules: [
1223-
{
1224-
test: /\.css$/i,
1225-
use: ["style-loader", "css-loader"],
1226-
},
1227-
{
1228-
test: /\.(png|jpe?g|gif|svg|eot|ttf|woff|woff2)$/i,
1229-
loader: "url-loader",
1230-
options: {
1231-
limit: 8192,
1232-
},
1233-
},
1234-
],
1235-
},
1236-
};
1237-
```
1238-
12391211
### Extract
12401212

12411213
For production builds it's recommended to extract the CSS from your bundle being able to use parallel loading of CSS/JS resources later on.
@@ -1285,14 +1257,6 @@ module.exports = {
12851257
// More information here https://webpack.js.org/guides/asset-modules/
12861258
type: "asset",
12871259
},
1288-
// For webpack v4
1289-
// {
1290-
// test: /\.(png|jpe?g|gif|svg|eot|ttf|woff|woff2)$/i,
1291-
// loader: "url-loader",
1292-
// options: {
1293-
// limit: 8192,
1294-
// },
1295-
// },
12961260
],
12971261
},
12981262
};

0 commit comments

Comments
 (0)