File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ var connect = require('connect'),
18
18
var Manager = require ( '../modules/manager.js' ) ;
19
19
var UtilFs = require ( '../utils/fs.js' ) ;
20
20
var UtilPath = require ( '../utils/path.js' ) ;
21
+ var EncodingPlugin = require ( 'webpack-encoding-plugin' ) ;
21
22
22
23
exports . usage = '开发服务' ;
23
24
exports . abbr = 's' ;
@@ -262,6 +263,7 @@ exports.run = function (options) {
262
263
263
264
nextConfig . plugins . push ( require ( '../plugins/progressBarPlugin.js' ) ) ;
264
265
nextConfig . plugins . push ( require ( '../plugins/compileInfoPlugin.js' ) ) ;
266
+ nextConfig . plugins . push ( new EncodingPlugin ( { encoding : 'utf-8' } ) ) ;
265
267
266
268
return nextConfig ;
267
269
} ) ;
Original file line number Diff line number Diff line change 57
57
"uglifycss" : " 0.0.25" ,
58
58
"webpack" : " 1.14.0" ,
59
59
"webpack-dev-middleware" : " 1.9.0" ,
60
+ "webpack-encoding-plugin" : " ^0.2.1"
60
61
},
61
62
"repository" : {
62
63
"type" : " http" ,
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ const connect = require('connect'),
14
14
const Manager = require ( '../modules/manager.js' ) ;
15
15
const UtilFs = require ( '../utils/fs.js' ) ;
16
16
const UtilPath = require ( '../utils/path.js' ) ;
17
+ const EncodingPlugin = require ( 'webpack-encoding-plugin' ) ;
17
18
18
19
exports . usage = '开发服务' ;
19
20
exports . abbr = 's' ;
@@ -254,6 +255,7 @@ exports.run = (options) => {
254
255
255
256
nextConfig . plugins . push ( require ( '../plugins/progressBarPlugin.js' ) ) ;
256
257
nextConfig . plugins . push ( require ( '../plugins/compileInfoPlugin.js' ) ) ;
258
+ nextConfig . plugins . push ( new EncodingPlugin ( { encoding : 'utf-8' } ) ) ;
257
259
258
260
return nextConfig ;
259
261
} ) ;
You can’t perform that action at this time.
0 commit comments