mirror of
https://github.com/portainer/portainer.git
synced 2025-07-18 21:09:40 +02:00
chore(webpack): add source maps (#4471)
* chore(webpack): add source maps * feat(build): fetch source maps for 3rd party libs
This commit is contained in:
parent
4cd468ce21
commit
486ffa5bbd
5 changed files with 77 additions and 1 deletions
|
@ -19,6 +19,11 @@ module.exports = {
|
|||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.js$/,
|
||||
enforce: 'pre',
|
||||
use: ['source-map-loader'],
|
||||
},
|
||||
{
|
||||
test: /\.js$/,
|
||||
exclude: /node_modules/,
|
||||
|
|
|
@ -4,6 +4,7 @@ const commonConfig = require('./webpack.common.js');
|
|||
|
||||
module.exports = webpackMerge(commonConfig, {
|
||||
mode: 'development',
|
||||
devtool: 'eval-source-map',
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
|
|
|
@ -3,6 +3,7 @@ const commonConfig = require('./webpack.common.js');
|
|||
|
||||
module.exports = webpackMerge(commonConfig, {
|
||||
mode: 'production',
|
||||
devtool: 'source-map',
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue