Skip to content
This repository has been archived by the owner on Apr 16, 2019. It is now read-only.

Circumvent project assumptions #3

Closed
satazor opened this issue May 3, 2017 · 4 comments
Closed

Circumvent project assumptions #3

satazor opened this issue May 3, 2017 · 4 comments

Comments

@satazor
Copy link

satazor commented May 3, 2017

At the moment, if you have a main.js file it's expected that the css lives in main.css.

Though, people like me like to tweak the output folders of js & css files, e.g.: js/main.js and css/main.css
As you see, this violates the assumption that the css file lives in the same folder as the js file. Is it possible to have an option to make it more flexible?

Thanks.

@StevenDoesStuffs
Copy link

Yeah, this is an issue as most people arent going to have js and css in the same folder.

@StevenDoesStuffs
Copy link

Also, that won't work with caching where your main file doesn't have the same name due to hashing.

@shepherdwind
Copy link
Owner

I add an option fileMap, so you can use is to define you reload rule.

See the doc https://github.com/shepherdwind/css-hot-loader#filemap for more information.

@stereokai
Copy link

@shepherdwind can you please explain this problem?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants