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:
@ -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',
|
||||
|
Reference in New Issue
Block a user