Open alaaalii opened 4 years ago
How large are the sass files question?
node_modules/@carbon/ibm-security/
is 21 MB, but it has a few dependencies in the same @carbon
directory, @carbon
is 57 MB. Here's the breakdown of all other carbon
related dependencies:
$ du -h -d1 node_modules | grep carbon
10M node_modules/carbon-components
42M node_modules/carbon-components-react
57M node_modules/@carbon
1.5M node_modules/carbon-icons
Those are the sizes of the whole folders (which include .js
files). But if you just wanted to know how big the total size of just .scss
files in all of the above folders, then it's 5.6 MB:
$ find node_modules/*carbon* -name "*.scss" | xargs du -h -c | tail -1
5.6M total
npm -v
):6.13.4
node -v
):v13.6.0
node -p process.versions
):node -p process.platform
):darwin
node -p process.arch
):x64
node -p "require('node-sass').info"
):npm ls node-sass
):Description:
I'm not sure where to log this issue (I've logged it before for reference: https://github.com/nodejs/nan/issues/883).
Trying to compile a simple SASS project (that uses this: https://github.com/carbon-design-system/ibm-security) fails (after maybe 10 minutes) with this error:
Contents of
/Users/alaa/.npm/_logs/2020-01-23T16_28_20_322Z-debug.log
are:I can consistently reproduce this on my machine by doing the following:
If I don't import the SCSS components of the ibm-security package
@carbon/ibm-security/scss/index
and instead just import their CSS components like this:@carbon/ibm-security/css/index.min.css
the compile works fine, so I'm assuming that this is related to some buffer/memory size related to how the scss is being compiled?