Use JS source maps for development
[MAILPOET-1752]
This commit is contained in:
@@ -10,6 +10,7 @@ const manifestSeed = {};
|
|||||||
// Base config
|
// Base config
|
||||||
const baseConfig = {
|
const baseConfig = {
|
||||||
mode: PRODUCTION_ENV ? 'production' : 'development',
|
mode: PRODUCTION_ENV ? 'production' : 'development',
|
||||||
|
devtool: PRODUCTION_ENV ? undefined : 'eval-source-map',
|
||||||
cache: true,
|
cache: true,
|
||||||
context: __dirname,
|
context: __dirname,
|
||||||
watchOptions: {
|
watchOptions: {
|
||||||
@@ -57,7 +58,7 @@ const baseConfig = {
|
|||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new webpackCleanPlugin([
|
new webpackCleanPlugin([
|
||||||
'./assets/dist/js/*.*',
|
'./assets/dist/js/*',
|
||||||
]),
|
]),
|
||||||
],
|
],
|
||||||
module: {
|
module: {
|
||||||
|
Reference in New Issue
Block a user