webcomponent: update build script and adjust Rollup config to conditionally include comments
This commit is contained in:
parent
f893aaab19
commit
7d0059feac
@ -4,6 +4,7 @@
|
|||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "npm install && rollup -c",
|
"build": "npm install && rollup -c",
|
||||||
|
"build:watch": "npm install && rollup -c -w",
|
||||||
"test:unit": "jest --forceExit --testPathPattern \"tests/unit\" --ci",
|
"test:unit": "jest --forceExit --testPathPattern \"tests/unit\" --ci",
|
||||||
"test:e2e": "playwright test",
|
"test:e2e": "playwright test",
|
||||||
"lint": "eslint 'src/**/*.ts'"
|
"lint": "eslint 'src/**/*.ts'"
|
||||||
|
|||||||
@ -61,7 +61,7 @@ export default {
|
|||||||
// toplevel: true // Enable top-level variable renaming
|
// toplevel: true // Enable top-level variable renaming
|
||||||
// },
|
// },
|
||||||
format: {
|
format: {
|
||||||
comments: false // Remove all comments
|
comments: !production
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user