Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
monaco-editor-erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
monaco-editor-erp5
Commits
9d7f8b56
Commit
9d7f8b56
authored
Jun 01, 2018
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build as *.bundle.min.js
so that tools (my primary use case: ack) understand this is minified
parent
c9a9d4ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
index.js
index.js
+5
-5
webpack.config.js
webpack.config.js
+1
-1
No files found.
index.js
View file @
9d7f8b56
...
...
@@ -5,17 +5,17 @@ import * as monaco from 'monaco-editor';
self
.
MonacoEnvironment
=
{
getWorkerUrl
:
function
(
moduleId
,
label
)
{
if
(
label
===
'
json
'
)
{
return
window
.
monacoEditorWebPackResourceBaseUrl
+
'
./json.worker.bundle.js
'
;
return
window
.
monacoEditorWebPackResourceBaseUrl
+
'
./json.worker.bundle.
min.
js
'
;
}
if
(
label
===
'
css
'
)
{
return
window
.
monacoEditorWebPackResourceBaseUrl
+
'
./css.worker.bundle.js
'
;
return
window
.
monacoEditorWebPackResourceBaseUrl
+
'
./css.worker.bundle.
min.
js
'
;
}
if
(
label
===
'
html
'
)
{
return
window
.
monacoEditorWebPackResourceBaseUrl
+
'
./html.worker.bundle.js
'
;
return
window
.
monacoEditorWebPackResourceBaseUrl
+
'
./html.worker.bundle.
min.
js
'
;
}
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
'
;
}
}
webpack.config.js
View file @
9d7f8b56
...
...
@@ -14,7 +14,7 @@ module.exports = {
},
output
:
{
globalObject
:
'
self
'
,
filename
:
'
[name].bundle.js
'
,
filename
:
'
[name].bundle.
min.
js
'
,
path
:
path
.
resolve
(
__dirname
,
'
dist
'
),
},
module
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment