mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
Merge pull request #2265 from overleaf/as-move-vendored-deps
Move vendored dependencies out of output directory GitOrigin-RevId: bad086bdc2a80f9df5d3f934098cb7b05e8f6db5
This commit is contained in:
committed by
sharelatex
parent
4f637f14b5
commit
78c30015f4
@@ -1,4 +1,3 @@
|
||||
const path = require('path')
|
||||
const merge = require('webpack-merge')
|
||||
|
||||
const base = require('./webpack.config')
|
||||
@@ -19,19 +18,8 @@ module.exports = merge(base, {
|
||||
|
||||
// Expose dev server as localhost with dev box
|
||||
host: '0.0.0.0',
|
||||
|
||||
// Webpack-rails default port for webpack-dev-server
|
||||
port: 3808,
|
||||
|
||||
// Allow CORS
|
||||
headers: {
|
||||
'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
|
||||
@@ -41,8 +29,8 @@ module.exports = merge(base, {
|
||||
version: false,
|
||||
chunks: false,
|
||||
modules: false,
|
||||
// Hide cmaps from asset output
|
||||
excludeAssets: [/cmap/]
|
||||
// Hide copied assets from output
|
||||
excludeAssets: [/^ace/, /^libs/, /^cmaps/]
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user