Authored by 陈峰

Merge branch 'master' into release/1.0

... ... @@ -6,4 +6,4 @@ node_modules/
*.log
.eslintcache
app/bundle
server/public/*.html
\ No newline at end of file
public/
\ No newline at end of file
... ...
... ... @@ -11,7 +11,7 @@ var webpackConfig = require('./webpack.prod.conf')
var spinner = ora('building for production...')
spinner.start()
rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => {
rm(path.join(config.build.assetsRoot), err => {
if (err) throw err
webpack(webpackConfig, function (err, stats) {
spinner.stop()
... ...
... ... @@ -6,10 +6,10 @@ module.exports = {
env: {
NODE_ENV: '"production"'
},
index: path.resolve(__dirname, `./bundle/${pkg.version}/index.html`),
assetsRoot: path.resolve(__dirname, './bundle'),
index: path.resolve(__dirname, `../../public/dist/${pkg.name}/${pkg.version}/index.html`),
assetsRoot: path.resolve(__dirname, `../../public/dist/${pkg.name}/`),
assetsSubDirectory: 'static',
assetsPublicPath: 'https://cdn.yoho.cn/yoho-shop-manage/',
assetsPublicPath: '//cdn.yoho.cn/yoho-shop-manage/',
productionSourceMap: true,
productionGzip: false,
productionGzipExtensions: ['js', 'css'],
... ...
... ... @@ -17,7 +17,6 @@ var webpackConfig = merge(baseConfig, {
},
devtool: config.build.productionSourceMap ? '#source-map' : false,
output: {
path: config.build.assetsRoot,
filename: utils.assetsPath('js/[name].[chunkhash:7].js'),
chunkFilename: utils.assetsPath('js/[name].[chunkhash:7].js')
},
... ...
{
"name": "yoho-shop-manage",
"version": "1.0.0",
"version": "1.0.2",
"description": "",
"main": "app.js",
"scripts": {
... ...