update monaco editor

This commit is contained in:
ValeraS
2018-09-12 10:32:56 +03:00
committed by Mrugesh Mohapatra
parent a99325e902
commit f500d565b2
3 changed files with 22 additions and 51 deletions

View File

@@ -102,6 +102,7 @@ exports.createPages = ({ graphql, actions }) => {
};
const RmServiceWorkerPlugin = require('webpack-remove-serviceworker-plugin');
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
exports.onCreateWebpackConfig = ({ rules, plugins, actions }) => {
actions.setWebpackConfig({
@@ -130,7 +131,8 @@ exports.onCreateWebpackConfig = ({ rules, plugins, actions }) => {
),
STRIPE_PUBLIC_KEY: JSON.stringify(process.env.STRIPE_PUBLIC_KEY || '')
}),
new RmServiceWorkerPlugin()
new RmServiceWorkerPlugin(),
new MonacoWebpackPlugin()
]
});
};