mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-24 05:42:12 +00:00
Prod webpack outputs to minjs dir
This commit is contained in:
parent
408c195c6a
commit
44998c05df
1 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
const path = require('path')
|
||||||
const webpack = require('webpack')
|
const webpack = require('webpack')
|
||||||
const merge = require('webpack-merge')
|
const merge = require('webpack-merge')
|
||||||
|
|
||||||
|
@ -7,6 +8,11 @@ module.exports = merge(base, {
|
||||||
// Enable a full source map.
|
// Enable a full source map.
|
||||||
devtool: 'source-map',
|
devtool: 'source-map',
|
||||||
|
|
||||||
|
output: {
|
||||||
|
// Override output path to minjs dir
|
||||||
|
path: path.join(__dirname, '/public/minjs/es'),
|
||||||
|
},
|
||||||
|
|
||||||
plugins: [
|
plugins: [
|
||||||
// Use UglifyJS to minimise output
|
// Use UglifyJS to minimise output
|
||||||
new webpack.optimize.UglifyJsPlugin({
|
new webpack.optimize.UglifyJsPlugin({
|
||||||
|
|
Loading…
Reference in a new issue