mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-24 23:56:51 +00:00
Second attempt to fix fetch link
This commit is contained in:
@@ -30,7 +30,7 @@ document.getElementById('header')?.append(modelSelector)
|
|||||||
new TreeView(model, document!.getElementById('view')!)
|
new TreeView(model, document!.getElementById('view')!)
|
||||||
new SourceView(model, document!.getElementById('source')!)
|
new SourceView(model, document!.getElementById('source')!)
|
||||||
|
|
||||||
fetch('./build/locales/en.json')
|
fetch('build/locales/en.json')
|
||||||
.then(r => r.json())
|
.then(r => r.json())
|
||||||
.then(l => {
|
.then(l => {
|
||||||
LOCALES.register('en', l)
|
LOCALES.register('en', l)
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
const CopyWebpackPlugin = require('copy-webpack-plugin')
|
const CopyWebpackPlugin = require('copy-webpack-plugin')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = (env, argv) => ({
|
||||||
entry: './src/app/app.ts',
|
entry: './src/app/app.ts',
|
||||||
output: {
|
output: {
|
||||||
path: __dirname + '/public',
|
path: __dirname + '/public',
|
||||||
|
publicPath: argv.mode === 'production' ? '/dev/' : '/',
|
||||||
filename: 'build/bundle.js'
|
filename: 'build/bundle.js'
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
@@ -21,4 +22,4 @@ module.exports = {
|
|||||||
]
|
]
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
}
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user