mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
将monaco-editor作为在线IDE编辑器
This commit is contained in:
1 parent
4c53fc8146
commit
53a6dbeb1a
9 files changed
+81
-134
No files matched your search
@@ -4,6 +4,7 @@ import _ from 'lodash';
|
||||
import webpack from 'webpack';
|
||||
import fs from 'fs-extra';
|
||||
|
||||
import MonacoWebpackPlugin from 'monaco-editor-webpack-plugin';
|
||||
import FriendlyErrorsPlugin from 'friendly-errors-webpack-plugin';
|
||||
import OptimizeCssAssetsPlugin from 'optimize-css-assets-webpack-plugin';
|
||||
import ExtractTextPlugin from 'extract-text-webpack-plugin';
|
||||
@@ -183,9 +184,10 @@ export default function (env = {}) {
|
||||
// don't include momentjs locale files
|
||||
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
|
||||
|
||||
// don't include timeago.js locale files
|
||||
// no use. FIXME.
|
||||
// new webpack.IgnorePlugin(/locales\//, /timeago/),
|
||||
new MonacoWebpackPlugin({
|
||||
// available options are documented at https://github.com/Microsoft/monaco-editor-webpack-plugin#options
|
||||
languages: ['cpp', 'csharp', 'java', 'javascript', 'python', 'rust', 'ruby', 'php', 'pascal', 'go']
|
||||
}),
|
||||
|
||||
// extract stylesheets into a standalone file
|
||||
env.watch
|
||||
|
||||
Reference in new issue
Block a user