Generate source maps.

This commit is contained in:
2019-03-04 00:34:56 +01:00
parent 26d365912c
commit ddf4f65fd6
3 changed files with 3 additions and 0 deletions

1
.gitignore vendored
View File

@@ -3,3 +3,4 @@ vendor
node_modules node_modules
.php_cs.cache .php_cs.cache
public/bundle.js public/bundle.js
*.map

View File

@@ -15,6 +15,7 @@
"postcss": "^7.0.14", "postcss": "^7.0.14",
"postcss-loader": "^3.0.0", "postcss-loader": "^3.0.0",
"sass-loader": "^7.1.0", "sass-loader": "^7.1.0",
"source-map": "^0.7.3",
"style-loader": "^0.23.1", "style-loader": "^0.23.1",
"webpack": "^4.29.6", "webpack": "^4.29.6",
"webpack-cli": "^3.2.3" "webpack-cli": "^3.2.3"

View File

@@ -2,6 +2,7 @@ const path = require('path');
module.exports = { module.exports = {
entry: './src/index.js', entry: './src/index.js',
devtool: "source-map",
output: { output: {
filename: 'bundle.js', filename: 'bundle.js',
path: path.resolve(__dirname, 'public') path: path.resolve(__dirname, 'public')