Merge pull request #863 from jonnybarnes/develop
MTM Fix compiled assets for prod
This commit is contained in:
commit
2b2826212f
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 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;
|
||||||
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue