I am using koa2 as backend and koa-swig to render my page. Here is the structure:

Inside dist file, there are index.html and static. All css, js, and images are in there. And here is the error:

Here is the build setting in config/index.js of webpack:
build: {
env: require('./prod.env'),
index: path.resolve(__dirname, '../dist/index.html'),
assetsRoot: path.resolve(__dirname, '../dist'),
assetsSubDirectory: 'static',
assetsPublicPath: '/',
productionSourceMap: true,
productionGzip: false,
productionGzipExtensions: ['js', 'css'],
bundleAnalyzerReport: process.env.npm_config_report
}