Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the stylesheet folder of “css ”,load path is wrong #183

Open
zb188 opened this issue Jan 15, 2015 · 2 comments
Open

the stylesheet folder of “css ”,load path is wrong #183

zb188 opened this issue Jan 15, 2015 · 2 comments

Comments

@zb188
Copy link

zb188 commented Jan 15, 2015

the stylesheet folder of “css ”,load path is wrong

//wrong:
map: {
        '*': {
            'css': 'libs/css.min'
        }
    }

require("css!css/beeui.css");

//ok:
map: {
        '*': {
            'cssImport': 'libs/css.min'
        }
    }

require("cssImport!css/beeui.css");
@cperryk
Copy link

cperryk commented Apr 9, 2015

I also noticed this issue. If you store your CSS files in a a folder called "css" while using a module prefix of "css", require-css will look for your css file relative to it (i.e. relative to the path of require-css) rather than relative to the page your script appears on. I renamed my "css" folder to "styles" for this reason.

@sbalagop
Copy link

I see the same issue too and using 'styles' instead of 'css' in the path.

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

No branches or pull requests

3 participants