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:
parent
72ab5a85be
commit
745c884774
1 changed files with 5 additions and 8 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue