小调整
This commit is contained in:
parent
e135fb9ac2
commit
93f6458d52
|
|
@ -127,7 +127,6 @@ module.exports = function (webpackEnv) {
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
assert: require.resolve('assert'),
|
|
||||||
'@': paths.appSrc,
|
'@': paths.appSrc,
|
||||||
'@project': paths.appRootSrc,
|
'@project': paths.appRootSrc,
|
||||||
'@oak-general-business': paths.oakGeneralBusinessAppPath,
|
'@oak-general-business': paths.oakGeneralBusinessAppPath,
|
||||||
|
|
@ -293,7 +292,6 @@ module.exports = function (webpackEnv) {
|
||||||
loader: 'babel-loader',
|
loader: 'babel-loader',
|
||||||
options: {
|
options: {
|
||||||
plugins: [oakI18nPlugin],
|
plugins: [oakI18nPlugin],
|
||||||
presets: ['@babel/preset-env']
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -370,7 +368,7 @@ module.exports = function (webpackEnv) {
|
||||||
extensions: paths.moduleFileExtensions.map((ext) => `.${ext}`),
|
extensions: paths.moduleFileExtensions.map((ext) => `.${ext}`),
|
||||||
exclude: ['*/weui-miniprogram/*'],
|
exclude: ['*/weui-miniprogram/*'],
|
||||||
include: ['project.config.json', 'sitemap.json'],
|
include: ['project.config.json', 'sitemap.json'],
|
||||||
split: !isEnvDevelopment,
|
split: isEnvProduction,
|
||||||
}),
|
}),
|
||||||
new webpack.DefinePlugin(env.stringified),
|
new webpack.DefinePlugin(env.stringified),
|
||||||
new StylelintPlugin({
|
new StylelintPlugin({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue