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:
Alasdair Smith
2019-10-30 11:35:56 +00:00
committed by sharelatex
parent 4f637f14b5
commit 78c30015f4
668 changed files with 78 additions and 94 deletions
+2 -14
View File
@@ -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/]
}
}
})