Skip to content
This repository was archived by the owner on Jul 8, 2023. It is now read-only.

Commit eda4ee9

Browse files
committed
bugfix: webpack config
1 parent 48471d4 commit eda4ee9

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

webpack.common.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ module.exports = {
4646
},
4747

4848
plugins: [
49-
new ExtractTextPlugin('style/[name].[hash:6].css'),
5049
new CleanWebpackPlugin(['source/js', 'source/style']),
5150
new HtmlWebpackPlugin({
5251
inject: false,

webpack.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module.exports = merge(common, {
77
devtool: 'inline-source-map',
88
output: {
99
filename: 'js/[name].js',
10-
},
10+
},
1111
plugins: [
1212
new ExtractTextPlugin('style/[name].css')
1313
],

webpack.prod.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
const merge = require("webpack-merge");
22
const common = require('./webpack.common.js');
3+
const ExtractTextPlugin = require('extract-text-webpack-plugin');
34

45
module.exports = merge(common, {
5-
mode: 'production'
6+
mode: 'production',
7+
plugins: [
8+
new ExtractTextPlugin('style/[name].[hash:6].css'),
9+
]
610
});

0 commit comments

Comments
 (0)