File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import path from 'path';
33const config = {
44 projectRoot : path . resolve ( __dirname , '../' ) ,
55 rootPath : path . resolve ( __dirname , '../dist' ) ,
6- nodePath : path . resolve ( __dirname , '../node_modules' ) ,
6+ nodePath : path . resolve ( __dirname , '../../ node_modules' ) ,
77 docsPath : 'docs' ,
88 indexPath : 'docs/index.html' ,
99 publicPath : '/' ,
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import webpack from 'webpack';
22import merge from 'webpack-merge' ;
33import HtmlWebpackPlugin from 'html-webpack-plugin' ;
44import baseWebpackConfig from './base' ;
5+ import config from '../config' ;
56
67Object . keys ( baseWebpackConfig . entry ) . forEach ( ( name ) => {
78 baseWebpackConfig . entry [ name ] = [ './build/server/client' ] . concat ( baseWebpackConfig . entry [ name ] ) ;
@@ -10,6 +11,7 @@ Object.keys(baseWebpackConfig.entry).forEach((name) => {
1011export default merge ( baseWebpackConfig , {
1112 devtool : '#inline-source-map' ,
1213 plugins : [
14+ new webpack . WatchIgnorePlugin ( [ config . nodePath ] ) ,
1315 new webpack . HotModuleReplacementPlugin ( ) ,
1416 new webpack . NoErrorsPlugin ( ) ,
1517 new HtmlWebpackPlugin ( {
You can’t perform that action at this time.
0 commit comments