1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-06-21 15:04:01 +02:00

setup build process for monaco files. public path is set to relative to support async chunk loading in app and extension both

This commit is contained in:
Kushagra Gour
2018-12-09 23:10:14 +05:30
parent bae1983ca5
commit deb03e7c7d
2 changed files with 15 additions and 14 deletions

View File

@ -1,4 +1,3 @@
import CopyWebpackPlugin from 'copy-webpack-plugin';
var CommonsChunkPlugin = require('webpack/lib/optimize/CommonsChunkPlugin');
/**
@ -28,7 +27,8 @@ export default function(config, env, helpers) {
if (env.isProd) {
config.devtool = false; // disable sourcemaps
config.output.publicPath = './';
config.output.chunkFilename = '[name].chunk.js';
config.plugins.push(
new CommonsChunkPlugin({
name: 'vendor',