Merge pull request #862 from jonnybarnes/861-css-no-longer-loads-on-prod

Fix compiled assets for prod environments
This commit is contained in:
Jonny Barnes 2023-05-27 18:03:43 +01:00 committed by GitHub
commit 9220981db3
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 EslintPlugin = require('eslint-webpack-plugin');
module.exports = {
devtool: 'eval-source-map',
const config = {
entry: ['./resources/js/app.js'],
output: {
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;
};