mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-23 07:10:41 +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 SourceView(model, document!.getElementById('source')!)
|
||||
|
||||
fetch('./build/locales/en.json')
|
||||
fetch('build/locales/en.json')
|
||||
.then(r => r.json())
|
||||
.then(l => {
|
||||
LOCALES.register('en', l)
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
const CopyWebpackPlugin = require('copy-webpack-plugin')
|
||||
|
||||
module.exports = {
|
||||
module.exports = (env, argv) => ({
|
||||
entry: './src/app/app.ts',
|
||||
output: {
|
||||
path: __dirname + '/public',
|
||||
publicPath: argv.mode === 'production' ? '/dev/' : '/',
|
||||
filename: 'build/bundle.js'
|
||||
},
|
||||
resolve: {
|
||||
@@ -21,4 +22,4 @@ module.exports = {
|
||||
]
|
||||
})
|
||||
]
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user