Skip to content

Commit

Permalink
πŸ› Fix missing sourcemap
Browse files Browse the repository at this point in the history
  • Loading branch information
apertureless committed Feb 9, 2018
1 parent 4cec21e commit ef52d98
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions build/webpack.release.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ module.exports = {
entry: {
'vue-chartjs': './src/index.js'
},
devtool: 'source-map',
output: {
filename: './dist/[name].js',
library: 'VueChartJs',
Expand Down Expand Up @@ -82,7 +83,7 @@ module.exports = {
}

if (process.env.NODE_ENV === 'production') {
delete module.exports.devtool
// delete module.exports.devtool
module.exports.plugins = [
new webpack.DefinePlugin({
'process.env': {
Expand All @@ -92,7 +93,8 @@ if (process.env.NODE_ENV === 'production') {
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
}
},
sourceMap: true
})
]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"e2e": "node test/e2e/runner.js",
"test": "npm run unit",
"lint": "eslint --ext .js,.vue src test/unit/specs test/e2e/specs",
"release": "webpack --progress --hide-modules --config ./build/webpack.release.js && cross-env NODE_ENV=production webpack --progress --hide-modules --config ./build/webpack.release.min.js",
"release": "cross-env NODE_ENV=production webpack --progress --hide-modules --config ./build/webpack.release.js && cross-env NODE_ENV=production webpack --progress --hide-modules --config ./build/webpack.release.min.js",
"prepublishOnly": "yarn run lint && yarn run test && yarn run build"
},
"dependencies": {},
Expand Down

0 comments on commit ef52d98

Please sign in to comment.