mirror of
https://github.com/gurnec/removeddit.git
synced 2026-03-11 08:54:27 +00:00
Removed source-maps from production builds
This commit is contained in:
parent
4727d6961c
commit
f6ab190081
2 changed files with 4 additions and 5 deletions
|
|
@ -24,8 +24,7 @@
|
|||
},
|
||||
"scripts": {
|
||||
"start": "webpack-dev-server --mode development",
|
||||
"build-dev": "webpack --mode development",
|
||||
"build-prod": "webpack --mode production",
|
||||
"build": "webpack --mode production",
|
||||
"build-sass": "node-sass --style compressed src/sass/index.sass dist/main.css"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
const path = require('path')
|
||||
|
||||
module.exports = {
|
||||
module.exports = (env, argv) => ({
|
||||
entry: [
|
||||
'babel-polyfill',
|
||||
'whatwg-fetch',
|
||||
|
|
@ -10,7 +10,7 @@ module.exports = {
|
|||
contentBase: path.resolve(__dirname, 'dist'),
|
||||
historyApiFallback: true
|
||||
},
|
||||
devtool: 'cheap-module-eval-source-map',
|
||||
devtool: argv.mode !== 'production' ? 'cheap-module-eval-source-map' : false,
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
|
|
@ -20,4 +20,4 @@ module.exports = {
|
|||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue