Merge pull request #862 from jonnybarnes/861-css-no-longer-loads-on-prod
Fix compiled assets for prod environments
This commit is contained in:
commit
9220981db3
3 changed files with 10 additions and 3 deletions
2
public/assets/app.js
vendored
2
public/assets/app.js
vendored
File diff suppressed because one or more lines are too long
Binary file not shown.
11
webpack.config.js
vendored
11
webpack.config.js
vendored
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue