webpack: fix source maps
Signed-off-by: Varun Patil <radialapps@gmail.com>pull/689/merge
parent
1bf9022756
commit
2c35f20eec
|
@ -7,7 +7,6 @@ mkdir -p /tmp/memories
|
|||
cp -R appinfo l10n img js lib templates COPYING README.md CHANGELOG.md exiftest* composer* /tmp/memories
|
||||
|
||||
cd /tmp
|
||||
rm -f memories/appinfo/screencap* memories/js/*.map
|
||||
rm -rf memories.tar.gz
|
||||
|
||||
cd memories
|
||||
|
|
|
@ -15,7 +15,7 @@ console.info('Building', appName, appVersion, '\n');
|
|||
module.exports = {
|
||||
target: 'web',
|
||||
mode: buildMode,
|
||||
devtool: isDev ? 'cheap-source-map' : false,
|
||||
devtool: 'source-map',
|
||||
cache: isDev,
|
||||
|
||||
entry: {
|
||||
|
@ -107,12 +107,6 @@ module.exports = {
|
|||
includeAliases: ['stream', 'process'], // webdav
|
||||
}),
|
||||
|
||||
// Configure source map public path
|
||||
new webpack.SourceMapDevToolPlugin({
|
||||
filename: '[file].map',
|
||||
publicPath: path.join('/apps/', process.env.npm_package_name, '/js/'),
|
||||
}),
|
||||
|
||||
// Bundle service worker
|
||||
new WorkboxPlugin.InjectManifest({
|
||||
swSrc: path.resolve(path.join('src', 'service-worker.js')),
|
||||
|
|
Loading…
Reference in New Issue