-
-
Notifications
You must be signed in to change notification settings - Fork 698
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
Webpack usage examples #149
Comments
My local version (the one which works) is v2.2.0. Npm has version 2.3.2 and this one doesn't work. HTML code is generated by this JS: |
Will be fixed by #157 Also make sure you are using a style-loader and css-loader to load CSS files because on its own webpack cannot understand anything apart from JS files. Example webpack config file:
About your html that doesn't work: |
v2.4.1 should fix this. |
Hi, can't figure out how to use it with webpack.
Here are some examples:
require('hint.css'); // loading npm module "as-is"
require('hint.css/hint.min.css'); // loading css file from the npm module
require('./css/hint.min.css'); // loading just css file (not from npm), downloaded from the site
Ah-ha!
If i make this thing:
cp node_modules/hint.css/hint.min.css websrc/css/hint.min2.css
, then this:
require('./css/hint.min2.css');
=> it doesn't work as well. I.e., it seems that the issue is not with the way of pluggin in, but with the css file itself that comes in the npm module...
The text was updated successfully, but these errors were encountered: