1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 08:13:27 +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: {
filename: 'transmission-app.js',
path: path.resolve(__dirname, 'public_html'),
sourceMapFilename: 'transmission-app.js.map'
sourceMapFilename: '[file].map',
},
plugins: [
new MiniCssExtractPlugin({
@ -52,7 +52,7 @@ const config = {
}),
],
resolve: {
extensions: ['.js', '.scss']
extensions: ['.js', '.scss'],
},
};
@ -60,18 +60,15 @@ if (mode === 'development') {
config.devServer = {
compress: true,
historyApiFallback: {
rewrites: [
{ from: '/transmission/web', to: '/' },
]
rewrites: [{ from: '/transmission/web', to: '/' }],
},
hot: true,
port: devPort,
proxy: {
'/rpc': rpcUrl
'/rpc': rpcUrl,
},
static: './public_html'
static: './public_html',
};
}
module.exports = config;