Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
毕凯
8 years ago
Commit
610d045a740ce928cba2fc31dec805f12998f5dc
1 parent
53278604
去除第三方混淆插件
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
package.json
public/build/webpack.prod.config.js
package.json
View file @
610d045
...
...
@@ -128,7 +128,6 @@
"webpack-dev-server"
:
"^2.7.1"
,
"webpack-hot-middleware"
:
"^2.19.1"
,
"webpack-merge"
:
"^4.1.0"
,
"webpack-uglify-parallel"
:
"^0.1.3"
,
"yoho-cookie"
:
"^1.2.0"
,
"yoho-fastclick"
:
"^1.0.6"
,
"yoho-hammer"
:
"^2.0.7"
,
...
...
public/build/webpack.prod.config.js
View file @
610d045
'use strict'
;
const
os
=
require
(
'os'
);
const
path
=
require
(
'path'
);
const
shelljs
=
require
(
'shelljs'
);
const
webpack
=
require
(
'webpack'
);
const
merge
=
require
(
'webpack-merge'
);
const
UglifyJsParallelPlugin
=
require
(
'webpack-uglify-parallel'
);
const
ExtractTextPlugin
=
require
(
'extract-text-webpack-plugin'
);
const
config
=
require
(
'../../package.json'
);
const
distDir
=
path
.
join
(
__dirname
,
`
..
/
dist
/
$
{
config
.
name
}
/${config.version}`
)
;
...
...
@@ -30,12 +28,14 @@ module.exports = merge(baseConfig, {
NODE_ENV
:
'"production"'
}
}),
new
UglifyJsParallelPlugin
({
workers
:
os
.
cpus
().
length
,
compress
:
{
warnings
:
false
},
comments
:
false
new
webpack
.
optimize
.
UglifyJsPlugin
({
parallel
:
true
,
uglifyOptions
:
{
compress
:
{
warnings
:
false
},
comments
:
false
}
})
]
});
...
...
Please
register
or
login
to post a comment