Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
max_android_panel
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
Zhang Xin
max_android_panel
Commits
0f89fc02
Commit
0f89fc02
authored
Oct 09, 2020
by
ouyanghui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
0498a56c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
package.json
+1
-1
webpack.config.js
+3
-6
No files found.
package.json
View file @
0f89fc02
...
...
@@ -7,7 +7,7 @@
"scripts"
:
{
"pretest"
:
"npm run clean"
,
"test"
:
"cross-env NODE_ENV=production PAD_ENV=test webpack --env=test --version=2.0.4 --progress --color"
,
"clean"
:
""
,
"clean"
:
"
rm -rf static/*
"
,
"start"
:
"cross-env NODE_ENV=development PAD_ENV=development webpack-dev-server --version=2.0.4 --env=dev -d --history-api-fallback --hot --inline --progress --colors --port 6999 --host 0.0.0.0"
,
"prebuild"
:
"npm run clean"
,
"build"
:
"cross-env NODE_ENV=production PAD_ENV=production webpack --env=build --version=2.0.4 --progress --color"
,
...
...
webpack.config.js
View file @
0f89fc02
...
...
@@ -92,8 +92,7 @@ let envConfig = {
'build'
:{
output
:{
path
:
path
.
join
(
__dirname
,
'./static'
),
// filename : 'bundle-[hash:6].js'
filename
:
'bundle.js'
filename
:
'bundle-[hash:6].js'
},
plugins
:[
new
webpack
.
optimize
.
UglifyJsPlugin
(),
//js压缩
...
...
@@ -122,8 +121,7 @@ let envConfig = {
'preprod'
:{
output
:{
path
:
path
.
join
(
__dirname
,
'./static'
),
// filename : 'bundle-[hash:6].js'
filename
:
'bundle.js'
filename
:
'bundle-[hash:6].js'
},
plugins
:[
new
webpack
.
optimize
.
UglifyJsPlugin
(),
//js压缩
...
...
@@ -152,8 +150,7 @@ let envConfig = {
'test'
:
{
output
:{
path
:
path
.
join
(
__dirname
,
'./static'
),
// filename : 'bundle-[hash:6].js'
filename
:
'bundle.js'
filename
:
'bundle-[hash:6].js'
},
plugins
:[
new
webpack
.
optimize
.
UglifyJsPlugin
(),
//js压缩
...
...
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