diff options
author | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-07-18 01:42:34 +0100 |
---|---|---|
committer | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-07-18 01:42:34 +0100 |
commit | 0a7870937f28a8c4a6dc0e07b649176d69007f28 (patch) | |
tree | c01abd1067dbb74c9c26a11c37a8b24e6b84b455 /config/webpack.config.js | |
parent | 675864e2c5661c09c6764e414424f8337b3892da (diff) | |
download | gitlab-ce-0a7870937f28a8c4a6dc0e07b649176d69007f28.tar.gz |
Remove multiple methods of including monaco related code and remove static monaco assets from public
Diffstat (limited to 'config/webpack.config.js')
-rw-r--r-- | config/webpack.config.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/config/webpack.config.js b/config/webpack.config.js index 71305f3611a..398324569cb 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -8,6 +8,7 @@ var CompressionPlugin = require('compression-webpack-plugin'); var NameAllModulesPlugin = require('name-all-modules-plugin'); var BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin; var WatchMissingNodeModulesPlugin = require('react-dev-utils/WatchMissingNodeModulesPlugin'); +var CopyWebpackPlugin = require('copy-webpack-plugin'); var ROOT_PATH = path.resolve(__dirname, '..'); var IS_PRODUCTION = process.env.NODE_ENV === 'production'; @@ -191,6 +192,13 @@ var config = { new webpack.optimize.CommonsChunkPlugin({ names: ['main', 'locale', 'common', 'runtime'], }), + + new CopyWebpackPlugin([ + { + from: `../../../node_modules/monaco-editor/${IS_PRODUCTION ? 'min' : 'dev'}/vs`, + to: 'vs' + } + ]), ], resolve: { |