mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 06:33:55 +01:00
Merge pull request #1440 from overleaf/as-amd-webpack
Bundle all frontend code with webpack GitOrigin-RevId: 1bd93dad516c456fe1649193868e841e20459b0b
This commit is contained in:
committed by
sharelatex
parent
e27577bd5b
commit
9cf73f965c
@@ -1,3 +1,4 @@
|
||||
const path = require('path')
|
||||
const merge = require('webpack-merge')
|
||||
|
||||
const base = require('./webpack.config')
|
||||
@@ -9,7 +10,7 @@ module.exports = merge(base, {
|
||||
devtool: 'cheap-module-eval-source-map',
|
||||
|
||||
output: {
|
||||
publicPath: '/public/js/es/'
|
||||
publicPath: '/js/'
|
||||
},
|
||||
|
||||
devServer: {
|
||||
@@ -27,21 +28,21 @@ module.exports = merge(base, {
|
||||
'Access-Control-Allow-Origin': '*'
|
||||
},
|
||||
|
||||
// Serve all content from public via webpack. This allows for serving assets
|
||||
// not (currently) bundled with webpack to be served as normal scripts
|
||||
contentBase: path.join(__dirname, 'public'),
|
||||
|
||||
// Customise output to the (node) console
|
||||
stats: {
|
||||
colors: true, // Enable some coloured highlighting
|
||||
timings: true, // Show build timing info
|
||||
assets: true, // Show output bundles
|
||||
warnings: true, // Show build warnings
|
||||
// Hide some overly verbose output
|
||||
performance: false, // Disable as code is uncompressed in dev mode
|
||||
hash: false,
|
||||
version: false,
|
||||
chunks: false
|
||||
chunks: false,
|
||||
modules: false,
|
||||
// Hide cmaps from asset output
|
||||
excludeAssets: [/cmap/]
|
||||
}
|
||||
},
|
||||
|
||||
// Disable performance budget warnings as code is uncompressed in dev mode
|
||||
performance: {
|
||||
hints: false
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user