Commit 9d7f8b56 authored by Jérome Perrin's avatar Jérome Perrin

build as *.bundle.min.js

so that tools (my primary use case: ack)  understand this is minified
parent c9a9d4ff
...@@ -5,17 +5,17 @@ import * as monaco from 'monaco-editor'; ...@@ -5,17 +5,17 @@ import * as monaco from 'monaco-editor';
self.MonacoEnvironment = { self.MonacoEnvironment = {
getWorkerUrl: function (moduleId, label) { getWorkerUrl: function (moduleId, label) {
if (label === 'json') { if (label === 'json') {
return window.monacoEditorWebPackResourceBaseUrl + './json.worker.bundle.js'; return window.monacoEditorWebPackResourceBaseUrl + './json.worker.bundle.min.js';
} }
if (label === 'css') { if (label === 'css') {
return window.monacoEditorWebPackResourceBaseUrl + './css.worker.bundle.js'; return window.monacoEditorWebPackResourceBaseUrl + './css.worker.bundle.min.js';
} }
if (label === 'html') { if (label === 'html') {
return window.monacoEditorWebPackResourceBaseUrl + './html.worker.bundle.js'; return window.monacoEditorWebPackResourceBaseUrl + './html.worker.bundle.min.js';
} }
if (label === 'typescript' || label === 'javascript') { if (label === 'typescript' || label === 'javascript') {
return window.monacoEditorWebPackResourceBaseUrl + './ts.worker.bundle.js'; return window.monacoEditorWebPackResourceBaseUrl + './ts.worker.bundle.min.js';
} }
return window.monacoEditorWebPackResourceBaseUrl + './editor.worker.bundle.js'; return window.monacoEditorWebPackResourceBaseUrl + './editor.worker.bundle.min.js';
} }
} }
...@@ -14,7 +14,7 @@ module.exports = { ...@@ -14,7 +14,7 @@ module.exports = {
}, },
output: { output: {
globalObject: 'self', globalObject: 'self',
filename: '[name].bundle.js', filename: '[name].bundle.min.js',
path: path.resolve(__dirname, 'dist'), path: path.resolve(__dirname, 'dist'),
}, },
module: { module: {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment