Bug 36674: (follow-up) Stop emitting Cypress API client source maps
- Use devtool: false to prevent emitting source maps for cypress. - Add package script to clean built assets, artifacts. Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com>
This commit is contained in:
parent
1d6a562c10
commit
229ab91dcb
|
|
@ -52,6 +52,7 @@
|
|||
"js:build:analyze": "rspack build --mode development --analyze",
|
||||
"js:watch": "rspack build --mode development --watch",
|
||||
"js:build:prod": "rspack build --mode production",
|
||||
"js:clean": "rm -rf koha-tmpl/intranet-tmpl/prog/js/vue/dist/* t/cypress/plugins/dist/*",
|
||||
"build": "yarn css:build && yarn js:build && yarn api:bundle",
|
||||
"build:prod": "yarn css:build:prod && yarn js:build:prod && yarn api:bundle",
|
||||
"cypress": "cypress",
|
||||
|
|
|
|||
|
|
@ -166,6 +166,7 @@ module.exports = [
|
|||
"api-client.cjs":
|
||||
"./koha-tmpl/intranet-tmpl/prog/js/fetch/api-client.js",
|
||||
},
|
||||
devtool: false,
|
||||
output: {
|
||||
filename: "[name].js",
|
||||
path: path.resolve(__dirname, "t/cypress/plugins/dist/"),
|
||||
|
|
|
|||
Loading…
Reference in New Issue