Skip to content

Commit

Permalink
12345
Browse files Browse the repository at this point in the history
  • Loading branch information
lanux committed Jul 30, 2017
1 parent d211bf3 commit 1c65be0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,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()
Expand Down
2 changes: 1 addition & 1 deletion config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
index: path.resolve(__dirname, '../dist/index.html'),
assetsRoot: path.resolve(__dirname, '../dist'),
assetsSubDirectory: 'public',
assetsPublicPath: '/',
assetsPublicPath: '/react-admin/', // 如果需要给项目指定项目名称需要配置,否则配置成 “/”
productionSourceMap: true,
// Gzip off by default as many popular static hosts such as
// Surge or Netlify already gzip all static assets for you.
Expand Down

0 comments on commit 1c65be0

Please sign in to comment.