File tree Expand file tree Collapse file tree 4 files changed +30
-1
lines changed Expand file tree Collapse file tree 4 files changed +30
-1
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- const log = require ( 'webpack/lib/logging/runtime ' ) ;
3
+ const log = require ( '../../log ' ) ;
4
4
5
5
const name = 'webpack-dev-server' ;
6
6
const defaultLevel = 'info' ;
Original file line number Diff line number Diff line change
1
+ 'use strict' ;
2
+
3
+ module . exports = require ( 'webpack/lib/logging/runtime' ) ;
Original file line number Diff line number Diff line change
1
+ 'use strict' ;
2
+
3
+ const path = require ( 'path' ) ;
4
+
5
+ module . exports = {
6
+ mode : 'production' ,
7
+ entry : path . join ( __dirname , 'index.js' ) ,
8
+ output : {
9
+ path : path . resolve ( __dirname , '../../client/log' ) ,
10
+ filename : 'index.js' ,
11
+ libraryTarget : 'commonjs2' ,
12
+ } ,
13
+ module : {
14
+ rules : [
15
+ {
16
+ test : / \. j s $ / ,
17
+ use : [
18
+ {
19
+ loader : 'babel-loader' ,
20
+ } ,
21
+ ] ,
22
+ } ,
23
+ ] ,
24
+ } ,
25
+ } ;
Original file line number Diff line number Diff line change 30
30
"build:client:clients" : " babel client-src/clients --out-dir client/clients" ,
31
31
"build:client:index" : " webpack --color --config client-src/default/webpack.config.js" ,
32
32
"build:client:sockjs" : " webpack --color --config client-src/sockjs/webpack.config.js" ,
33
+ "build:client:log" : " webpack --color --config client-src/log/webpack.config.js" ,
33
34
"build:client" : " rimraf ./client/* && npm-run-all -s -l -p \" build:client:**\" " ,
34
35
"webpack-dev-server" : " node examples/run-example.js" ,
35
36
"release" : " standard-version"
You can’t perform that action at this time.
0 commit comments