Closed kariae closed 2 years ago
mark
This is my laptop, apple air m1.
System:
OS: macOS 11.5.1
CPU: (8) arm64 Apple M1
Memory: 93.55 MB / 8.00 GB
Binaries:
Node: 16.8.0 - ~/.nvm/versions/node/v16.8.0/bin/node
npm: 6.14.15 - ~/.nvm/versions/node/v16.8.0/bin/npm
Browsers:
Chrome: 97.0.4692.71
Safari: 14.1.2
I download the source code just less from git://github.com/fomantic/Fomantic-UI-LESS.git, and try build with lessc.
const now = Date.now()
require('less/bin/lessc')
process.on('exit', () => {
console.log(Date.now() - now)
})
run with :
node ./index.js ./semantic.less ./theme.css
The build cast about 7s. So I do not think less is the mainly problem......But yes, it is a little slow......
You could build first ,and import the css file which built with lessc. I think this will be quickly....
thanks @ryouaki, since I'm watching files on change I'm not sure if I can build then import it would be the same.
I ended up cleaning the .less file, which made things much faster (around 3s) which is fine since I won't change it often.
Feel free to close this one, thank you.
I'm using Fomantic UI, which contains a .less file with many imports, and webpack/less-loader for the build. The build takes around 17 seconds, and when I do remove the imports the build goes to 2 seconds.
npx webpack-cli info` here in case they might help: