use webpack to load editor files

pull/1813/head
bunsenstraat 3 years ago
parent 0f86da3e4f
commit b9227a72ae
  1. 11
      apps/remix-ide/webpack.config.js

@ -16,11 +16,16 @@ module.exports = config => {
child_process: 'empty'
},
plugins: [
new CopyWebpackPlugin([
{ from: "node_modules/monaco-editor/min/vs/", to: "assets/js/monaco-editor/vs" },
]),
...nxWebpackConfig.plugins,
new CopyWebpackPlugin({
patterns: [
{ from: "../../../node_modules/monaco-editor/dev/vs/", to: "assets/js/monaco-editor/dev/vs" },
].filter(Boolean)
})
]
}
console.log(webpackConfig)
console.log(nxWebpackConfig)
if (process.env.NODE_ENV === 'production') {
return {

Loading…
Cancel
Save