Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke "Jared" Bennett <lbennett@gitlab.com>2017-07-18 03:42:34 +0300
committerLuke "Jared" Bennett <lbennett@gitlab.com>2017-07-18 03:42:34 +0300
commit0a7870937f28a8c4a6dc0e07b649176d69007f28 (patch)
treec01abd1067dbb74c9c26a11c37a8b24e6b84b455 /config/webpack.config.js
parent675864e2c5661c09c6764e414424f8337b3892da (diff)
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.js8
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: {