PropertyTable 생성
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
const path = require('path');
|
||||
// const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
|
||||
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
|
||||
|
||||
module.exports = {
|
||||
entry: {
|
||||
app: './src/index.js',
|
||||
'editor.worker': 'monaco-editor/esm/vs/editor/editor.worker.js',
|
||||
'json.worker': 'monaco-editor/esm/vs/language/json/json.worker',
|
||||
'css.worker': 'monaco-editor/esm/vs/language/css/css.worker',
|
||||
'html.worker': 'monaco-editor/esm/vs/language/html/html.worker',
|
||||
'ts.worker': 'monaco-editor/esm/vs/language/typescript/ts.worker'
|
||||
// 'editor.worker': 'monaco-editor/esm/vs/editor/editor.worker.js',
|
||||
// 'json.worker': 'monaco-editor/esm/vs/language/json/json.worker',
|
||||
// 'css.worker': 'monaco-editor/esm/vs/language/css/css.worker',
|
||||
// 'html.worker': 'monaco-editor/esm/vs/language/html/html.worker',
|
||||
// 'ts.worker': 'monaco-editor/esm/vs/language/typescript/ts.worker'
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
@@ -40,6 +40,7 @@ module.exports = {
|
||||
}
|
||||
]
|
||||
},
|
||||
plugins: [new MonacoWebpackPlugin()],
|
||||
externals: {
|
||||
jquery: 'jQuery',
|
||||
bootstrap: 'bootstrap',
|
||||
@@ -53,6 +54,7 @@ module.exports = {
|
||||
export: 'default'
|
||||
},
|
||||
globalObject: `(typeof self !== 'undefined' ? self : this)`,
|
||||
// globalObject: 'self',
|
||||
path: path.resolve(__dirname, 'dist'),
|
||||
filename: '[name].bundle.js',
|
||||
},
|
||||
@@ -64,6 +66,18 @@ module.exports = {
|
||||
changeOrigin: true,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
// optimization: {
|
||||
// splitChunks: {
|
||||
// chunks: 'all',
|
||||
// automaticNameDelimiter: '-',
|
||||
// cacheGroups: {
|
||||
// vendor: {
|
||||
// test: /[\\/]node_modules[\\/]/,
|
||||
// name: 'vendors',
|
||||
// chunks: 'all',
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user