Merge pull request #863 from jonnybarnes/develop

MTM Fix compiled assets for prod
This commit is contained in:
Jonny Barnes 2023-05-27 18:08:09 +01:00 committed by GitHub
commit 2b2826212f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 3 deletions

File diff suppressed because one or more lines are too long

Binary file not shown.

11
webpack.config.js vendored
View file

@ -4,8 +4,7 @@ const CompressionPlugin = require('compression-webpack-plugin');
const zlib = require('zlib'); const zlib = require('zlib');
const EslintPlugin = require('eslint-webpack-plugin'); const EslintPlugin = require('eslint-webpack-plugin');
module.exports = { const config = {
devtool: 'eval-source-map',
entry: ['./resources/js/app.js'], entry: ['./resources/js/app.js'],
output: { output: {
path: path.resolve('./public/assets'), path: path.resolve('./public/assets'),
@ -71,3 +70,11 @@ module.exports = {
}), }),
] ]
}; };
module.exports = (env, argv) => {
if (argv.mode === 'development') {
config.devtool = 'eval-source-map';
}
return config;
};