Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wechat-common
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaomai-cloud-class
wechat-common
Commits
8926245f
Commit
8926245f
authored
Apr 06, 2021
by
zhangleyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:更改webpack里的配置
parent
e89731f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
config/webpack.config.js
+4
-0
No files found.
config/webpack.config.js
View file @
8926245f
...
...
@@ -26,6 +26,7 @@ const ForkTsCheckerWebpackPlugin = require('react-dev-utils/ForkTsCheckerWebpack
const
typescriptFormatter
=
require
(
'react-dev-utils/typescriptFormatter'
);
const
postcssNormalize
=
require
(
'postcss-normalize'
);
const
vConsolePlugin
=
require
(
'vconsole-webpack-plugin'
);
const
appPackageJson
=
require
(
paths
.
appPackageJson
);
...
...
@@ -607,6 +608,9 @@ module.exports = function(webpackEnv) {
};
},
}),
new
vConsolePlugin
({
enable
:
(
process
.
env
.
DEPLOY_ENV
===
'prod'
||
process
.
env
.
DEPLOY_ENV
===
'beta'
)
?
false
:
true
}),
// Moment.js is an extremely popular library that bundles large locale files
// by default due to how webpack interprets its code. This is a practical
// solution that requires the user to opt into importing specific locales.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment