Skip to content

Commit

Permalink
use single build for now
Browse files Browse the repository at this point in the history
  • Loading branch information
kvhnuke committed May 27, 2020
1 parent dd86d3d commit b049111
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions vueConfig/mewcx.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const env_vars = require('../ENV_VARS');
const path = require('path');
const defaultConfig = require('./defaultConfigs');
const webpackConfigCXWeb3 = {
devtool: false,
devtool: defaultConfig.devtool,
entry: {
cxWeb3: './src/builds/mewcx/cxHelpers/cxWeb3.js',
contentScript: './src/builds/mewcx/cxHelpers/contentScript.js',
Expand All @@ -14,12 +14,6 @@ const webpackConfigCXWeb3 = {
},
optimization: {
splitChunks: false
}
};
const webpackConfig = {
devtool: false,
node: {
process: true
},
plugins: defaultConfig.plugins.concat([
new CopyWebpackPlugin({
Expand Down Expand Up @@ -64,15 +58,10 @@ const webpackConfig = {
}
]
})
]),
optimization: {
splitChunks: {
chunks: 'async'
}
}
])
};
const pluginOptions = {
configureMultiCompilerWebpack: [webpackConfigCXWeb3]
// configureMultiCompilerWebpack: [webpackConfigCXWeb3]
};
const exportObj = {
pages: {
Expand All @@ -91,7 +80,7 @@ const exportObj = {
}
},
publicPath: './',
configureWebpack: webpackConfig,
configureWebpack: webpackConfigCXWeb3,
lintOnSave: process.env.NODE_ENV === 'production' ? 'error' : true,
integrity: true,
pluginOptions,
Expand Down

0 comments on commit b049111

Please sign in to comment.