Second attempt to fix fetch link

This commit is contained in:
Misode
2020-05-29 04:01:39 +02:00
parent 60e5fe0ce9
commit ba5f9638c0
2 changed files with 4 additions and 3 deletions

View File

@@ -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)

View File

@@ -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 = {
]
})
]
}
})