Skip to content

Commit 8faaef0

Browse files
authored
Update switch_from_webpacker.md (#109)
1 parent d7ab4f4 commit 8faaef0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/switch_from_webpacker.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ With the right loaders, webpack can handle CSS files. This setup _only_ uses jsb
168168

169169
```sh
170170
# From the CLI, add loaders, plugins, and node sass
171-
yarn add css-loader sass sass-loader mini-css-extract-plugin webpack-fix-style-only-entries
171+
yarn add css-loader sass sass-loader mini-css-extract-plugin webpack-remove-empty-scripts
172172
```
173173

174174
2. Configure webpack
@@ -180,7 +180,7 @@ yarn add css-loader sass sass-loader mini-css-extract-plugin webpack-fix-style-o
180180
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
181181
// Removes exported JavaScript files from CSS-only entries
182182
// in this example, entry.custom will create a corresponding empty custom.js file
183-
const FixStyleOnlyEntriesPlugin = require('webpack-fix-style-only-entries');
183+
const RemoveEmptyScriptsPlugin = require('webpack-remove-empty-scripts');
184184

185185
module.exports = {
186186
entry: {
@@ -206,7 +206,7 @@ module.exports = {
206206
},
207207
plugins: [
208208
// Include plugins
209-
new FixStyleOnlyEntriesPlugin(),
209+
new RemoveEmptyScriptsPlugin(),
210210
new MiniCssExtractPlugin(),
211211
],
212212
};

0 commit comments

Comments
 (0)