1
0
Fork 0

feat(cfp): Add bundle-analyzer

This commit is contained in:
Joost De Cock 2021-06-13 12:10:01 +02:00
parent f4fd634bb4
commit a32ac826ce
4 changed files with 18 additions and 10 deletions

View file

@ -19,6 +19,7 @@ export default {
'sleeveLengthBonus',
'sleeveBend',
],
style: [ 's3Collar', 's3Armhole' ],
advanced: [
'acrossBackFactor',
'armholeDepthFactor',
@ -77,5 +78,8 @@ export default {
sleevecapHeight: { pct: 45, min: 40, max: 60 },
sleevecapEase: { pct: 1, min: 0, max: 10 },
sleeveLengthBonus: { pct: 0, min: -20, max: 15 },
// s3 is short for Shoulder Seam Shift
s3Collar: { pct: 0, min: -100, max: 100 },
s3Armhole: { pct: 0, min: -100, max: 100 },
},
}

View file

@ -7,6 +7,7 @@
"@fontsource/permanent-marker": "latest",
"@fontsource/roboto-mono": "latest",
"@fontsource/ubuntu": "latest",
"@freesewing/brian": "^2.16.2",
"@freesewing/components": "latest",
"@freesewing/core": "latest",
"@freesewing/css-theme": "latest",
@ -15,20 +16,20 @@
"@freesewing/mui-theme": "latest",
"@freesewing/pattern-info": "latest",
"@freesewing/plugin-bundle": "latest",
"@freesewing/plugin-theme": "latest",
"@freesewing/plugin-i18n": "latest",
"@freesewing/plugin-svgattr": "latest",
"@freesewing/plugin-theme": "latest",
"@freesewing/utils": "latest",
"@material-ui/core": "^4.11.4",
"@material-ui/icons": "^4.11.2",
"@material-ui/lab": "^v4.0.0-alpha.57",
"file-saver": "^2.0.5",
"prismjs": "1.23.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-intl": "^5.18.0",
"react-scripts": "^4.0.3",
"file-saver": "^2.0.5",
"react-markdown": "6.0.2"
"react-markdown": "6.0.2",
"react-scripts": "^4.0.3"
},
"scripts": {
"start": "react-scripts start",

View file

@ -28,10 +28,10 @@ export default {
resolve({ modulesOnly: true }),
commonjs(),
json(),
terser({
output: {
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
}
})
// terser({
// output: {
// preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
// }
// })
]
}

View file

@ -28,9 +28,12 @@
"react-intl": "^5.18.0",
"react-scripts": "^4.0.3",
"file-saver": "^2.0.5",
"react-markdown": "6.0.2"
"react-markdown": "6.0.2",
"source-map-explorer": "^2.5.2"
},
"scripts": {
"analyze": "source-map-explorer 'build/static/js/*.js'",
"size": "source-map-explorer 'build/static/js/*.js' --tsv --no-root",
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",