1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 00:34:04 +00:00

chore: get rid of webpack error while creating source map (#4058)

This commit is contained in:
Hakjoon Sim 2022-11-01 06:14:01 +09:00 committed by GitHub
parent 72ab5a85be
commit 745c884774
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,7 +40,7 @@ const config = {
output: { output: {
filename: 'transmission-app.js', filename: 'transmission-app.js',
path: path.resolve(__dirname, 'public_html'), path: path.resolve(__dirname, 'public_html'),
sourceMapFilename: 'transmission-app.js.map' sourceMapFilename: '[file].map',
}, },
plugins: [ plugins: [
new MiniCssExtractPlugin({ new MiniCssExtractPlugin({
@ -52,7 +52,7 @@ const config = {
}), }),
], ],
resolve: { resolve: {
extensions: ['.js', '.scss'] extensions: ['.js', '.scss'],
}, },
}; };
@ -60,18 +60,15 @@ if (mode === 'development') {
config.devServer = { config.devServer = {
compress: true, compress: true,
historyApiFallback: { historyApiFallback: {
rewrites: [ rewrites: [{ from: '/transmission/web', to: '/' }],
{ from: '/transmission/web', to: '/' },
]
}, },
hot: true, hot: true,
port: devPort, port: devPort,
proxy: { proxy: {
'/rpc': rpcUrl '/rpc': rpcUrl,
}, },
static: './public_html' static: './public_html',
}; };
} }
module.exports = config; module.exports = config;