Skip to content

Commit

Permalink
fix: build source map and public path
Browse files Browse the repository at this point in the history
  • Loading branch information
shaodahong committed Sep 23, 2020
1 parent 691af1f commit fc7951b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/webpack/prodConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = async function getProdConfig(options) {
const baseConfig = await getBaseConfig(options)

return merge(baseConfig, {
devtool: config[process.env.PACKAGE].productionSourceMap ? '#source-map' : false,
devtool: config[process.env.PACKAGE].productionSourceMap ? 'source-map' : false,
optimization: {
minimizer: [
new OptimizeCSSAssetsPlugin({
Expand Down Expand Up @@ -70,7 +70,7 @@ module.exports = async function getProdConfig(options) {
path: config[process.env.PACKAGE].assetsRoot,
filename: assetsPath('js/[name].[chunkhash].js'),
chunkFilename: assetsPath('js/[name].[chunkhash].js'),
publicPath: 'http://127.0.0.1:8080/',
publicPath: config[process.env.PACKAGE].assetsPublicPath,
},

stats: {
Expand Down

0 comments on commit fc7951b

Please sign in to comment.