mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-02 01:19:53 +00:00
fixed webpack sourcemap namespaces
This commit is contained in:
parent
7398d776be
commit
bb9c9d8313
@ -6,16 +6,17 @@ const bundleAnalyzer = new BundleAnalyzerPlugin({
|
|||||||
analyzerPort: 0,
|
analyzerPort: 0,
|
||||||
})
|
})
|
||||||
|
|
||||||
const sourceMapOptions = {
|
|
||||||
exclude: [/node_modules/, /vendor/],
|
|
||||||
filename: '[file].map',
|
|
||||||
}
|
|
||||||
|
|
||||||
if (process.env.CI) {
|
|
||||||
sourceMapOptions.append = '\n//# sourceMappingURL=../../../app.asar.unpacked/assets/webpack/[url]'
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = options => {
|
module.exports = options => {
|
||||||
|
const sourceMapOptions = {
|
||||||
|
exclude: [/node_modules/, /vendor/],
|
||||||
|
filename: '[file].map',
|
||||||
|
moduleFilenameTemplate: `webpack-terminus-${options.name}:///[resource-path]`,
|
||||||
|
}
|
||||||
|
|
||||||
|
if (process.env.CI) {
|
||||||
|
sourceMapOptions.append = '\n//# sourceMappingURL=../../../app.asar.unpacked/assets/webpack/[url]'
|
||||||
|
}
|
||||||
|
|
||||||
const isDev = !!process.env.TERMINUS_DEV
|
const isDev = !!process.env.TERMINUS_DEV
|
||||||
const config = {
|
const config = {
|
||||||
target: 'node',
|
target: 'node',
|
||||||
@ -27,7 +28,6 @@ module.exports = options => {
|
|||||||
filename: 'index.js',
|
filename: 'index.js',
|
||||||
pathinfo: true,
|
pathinfo: true,
|
||||||
libraryTarget: 'umd',
|
libraryTarget: 'umd',
|
||||||
devtoolModuleFilenameTemplate: `webpack-terminus-${options.name}:///[resource-path]`,
|
|
||||||
},
|
},
|
||||||
mode: isDev ? 'development' : 'production',
|
mode: isDev ? 'development' : 'production',
|
||||||
optimization:{
|
optimization:{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user