Skip to content

Commit a7073c8

Browse files
committed
tweak webpack config
1 parent 62525a9 commit a7073c8

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

karma.conf.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,11 @@ module.exports = function (config) {
3232
webpack: {
3333
devtool: 'inline-source-map',
3434
entry: {},
35+
performance: {
36+
hints: false
37+
},
3538
module: {
36-
loaders: [
39+
rules: [
3740
{ test: /\.(jpe?g|png|gif|svg)$/, loader: 'url', options: { limit: 10240 } },
3841
{ test: /\.js$/, exclude: /node_modules/, loader: 'babel-loader' },
3942
{ test: /\.less$/, loader: 'style-loader!css-loader!less-loader' },
@@ -47,8 +50,7 @@ module.exports = function (config) {
4750
modules: [
4851
'src',
4952
'node_modules'
50-
],
51-
extensions: ['.json', '.js']
53+
]
5254
},
5355
plugins: [
5456
new webpack.IgnorePlugin(/\.json$/),
@@ -65,6 +67,10 @@ module.exports = function (config) {
6567

6668
webpackServer: {
6769
noInfo: true
70+
},
71+
72+
devServer: {
73+
stats: 'errors-only',
6874
}
6975

7076
});

webpack/vendor.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ module.exports = {
1111
library: 'DLL_[name]_[hash]'
1212
},
1313

14+
performance: {
15+
hints: false
16+
},
17+
1418
entry: {
1519
vendor: [
1620
'babel-polyfill',

0 commit comments

Comments
 (0)