css-modules / css-modulesify

A browserify plugin to load CSS Modules
MIT License
403 stars 47 forks source link

No such file error on Windows #78

Open huan086 opened 8 years ago

huan086 commented 8 years ago

Error: ENOENT: no such file or directory, open '....the path to output....'

In the output settings, I've set the file to be saved in a folder that does not exists. Expected that the folders are created automatically.

However, I'm getting the above error

pixelass commented 7 years ago

Do you use any plugins? I get a similar/same error when using postcss-modules https://github.com/css-modules/postcss-modules/issues/62

huan086 commented 7 years ago

In the end I used mkdirp module to create the folders before running browserify.

Anyway, I've since migrated to webpack. The community around browserify seems to have disappeared.

pixelass commented 7 years ago

I am also having a lot of issues with browserify and compatibility but webpack is too much of an abstraction to me.

huan086 commented 7 years ago

I find the latest version is very similar to browserify + things in gulp like uglify.

Only complaint is that after transforming css through PostCSS loader, webpack would bundle it within your JavaScript output, which you then need ExtractTextPlugin to take it out again.