mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-26 09:08:07 -05:00
Don't use eval devtool in production
This commit is contained in:
parent
ad3189c164
commit
afbc5acf42
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ routes.forEach(function (route) {
|
||||||
// Config
|
// Config
|
||||||
module.exports = {
|
module.exports = {
|
||||||
entry: entry,
|
entry: entry,
|
||||||
devtool: 'eval',
|
devtool: process.env.NODE_ENV === 'production' ? 'none' : 'eval',
|
||||||
output: {
|
output: {
|
||||||
path: path.resolve(__dirname, 'build'),
|
path: path.resolve(__dirname, 'build'),
|
||||||
filename: 'js/[name].bundle.js'
|
filename: 'js/[name].bundle.js'
|
||||||
|
|
Loading…
Reference in a new issue