diff --git a/assets/build/webpack.dev.conf.js b/assets/build/webpack.dev.conf.js index ce961a9f..dd75ac4e 100644 --- a/assets/build/webpack.dev.conf.js +++ b/assets/build/webpack.dev.conf.js @@ -55,7 +55,7 @@ module.exports = merge(baseWebpackConfig, { module.resource && /\.js$/.test(module.resource) && module.resource.indexOf( - path.join(__dirname, '../node_modules') + path.join(__dirname, '../../node_modules') ) === 0 ) } @@ -73,7 +73,7 @@ module.exports = merge(baseWebpackConfig, { ignore: ['.*'] }, { - from: path.resolve(__dirname, '../node_modules/codemirror/mode/*/*'), + from: path.resolve(__dirname, '../../node_modules/codemirror/mode/*/*'), to: path.join(config.assetsSubDirectory, 'js/codemirror/mode/[name]/[name].js') } ]) diff --git a/assets/build/webpack.prod.conf.js b/assets/build/webpack.prod.conf.js index 71851a6f..7912ad3f 100644 --- a/assets/build/webpack.prod.conf.js +++ b/assets/build/webpack.prod.conf.js @@ -35,7 +35,7 @@ var webpackConfig = merge(baseWebpackConfig, { ignore: ['.*'] }, { - from: path.resolve(__dirname, '../node_modules/codemirror/mode/*/*'), + from: path.resolve(__dirname, '../../node_modules/codemirror/mode/*/*'), to: path.join(config.assetsSubDirectory, 'js/codemirror/mode/[name]/[name].js'), transform: function (source, path) { let result = UglifyJS.minify(source.toString('utf8')) @@ -96,7 +96,7 @@ var webpackConfig = merge(baseWebpackConfig, { module.resource && /\.js$/.test(module.resource) && module.resource.indexOf( - path.join(__dirname, '../node_modules') + path.join(__dirname, '../../node_modules') ) === 0 ) }