mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature(load-module) add
This commit is contained in:
parent
146b32b215
commit
4b528280ba
24 changed files with 1352 additions and 1491 deletions
|
|
@ -27,6 +27,8 @@ const devtool = isDev ? 'eval' : 'source-map';
|
|||
const notEmpty = (a) => a;
|
||||
const clean = (array) => array.filter(notEmpty);
|
||||
|
||||
const noParse = (a) => /\.spec\.js$/.test(a);
|
||||
|
||||
const babelDev = {
|
||||
babelrc: false,
|
||||
plugins: [
|
||||
|
|
@ -55,8 +57,8 @@ const plugins = [
|
|||
];
|
||||
|
||||
const splitChunks = {
|
||||
chunks: 'all',
|
||||
name: 'cloudcmd.common',
|
||||
chunks: 'async',
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
|
|
@ -96,6 +98,7 @@ module.exports = {
|
|||
],
|
||||
module: {
|
||||
rules,
|
||||
noParse,
|
||||
},
|
||||
plugins,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue