node-less-chokidar icon indicating copy to clipboard operation
node-less-chokidar copied to clipboard

-o as feature

Open JFGHT opened this issue 8 years ago • 4 comments

It would be nice to add -o as a feature to the package. I think it's something crutial which is already in node-sass-chokidar.

JFGHT avatar Oct 18 '17 15:10 JFGHT

so this library does't support -o option?is this why my output files(.css, .css.map) all appear in my src dictionary?

luweiCN avatar Jun 11 '18 09:06 luweiCN

I use -o dev-files/ or --output dev-files/,the terminal says 'wrote css file in dev-files' as blew: image but it turns out that the .css and .css.map files are still generated in the source dictionery

luweiCN avatar Jun 12 '18 03:06 luweiCN

same situation here. --output is not supported

iplus26 avatar Jul 11 '18 07:07 iplus26

For anyone using Create-React-App and wanna extract compiled css files out of javascript bundles, you don't need --output in node-less-chokidar.

Set package.json like the README file suggests, and import css file in your js. Create-React-App did the extract job for you (check out webpack.config.prod.js if you've ejected the CRA). Try npm run build and you'll find hashed css file in your index.html.

iplus26 avatar Jul 11 '18 08:07 iplus26