-
Notifications
You must be signed in to change notification settings - Fork 205
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
Transform css module imports during build #126
Transform css module imports during build #126
Conversation
@roylee0704 Getting a |
@silvenon what do you think about this? |
This fixed #28 for me. |
Thanks for the PR @danny-andrews ;) |
@danny-andrews Is everything working on your side? v1.1.4 |
@roylee0704 Haven't pulled down the new version yet. I'll let you know when we have! |
For me this actually breaks (v1.1.4) In components: import { Row, Col } from 'react-flexbox-grid/lib/index'; Webpack: {
test: /\.css$/,
use: [
{ loader: 'style-loader' },
{ loader: 'css-loader', options: importLoaders: 1, modules: true }, // With additional options
{ loader: 'postcss-loader' }], // With additional options
],
include: './app/css', //my own css files are here
exclude: /flexboxgrid/
},
{
test: /\.css$/,
use: [
{ loader: 'style-loader' },
{ loader: 'css-loader', options: modules: true }
],
include: /flexboxgrid/
} I've tried to change the import to just |
@slavab89 It's probably easier to add 'flexboxgrid/dist/flexboxgrid.css' to |
@slavab89 Oh, it should be |
@roylee0704 I'm sorry, I should have been more clear. This was a breaking change and should have resulted in a major version bump. I added a note to the old PR but failed to copy it over here. |
Got a fix up here. |
@danny-andrews I think i should be using the Also, i'm not sure why but the |
Sorry, I misread that. You want to do: |
Thanks. I've added
|
@slavab89 Yeah, it certainly isn't ideal. I have a fix up here. Mind taking a look @roylee0704? |
This changeset transforms css module imports as part of the build process.
Fixes #80 and #28 and possibly #84.