-
-
Notifications
You must be signed in to change notification settings - Fork 486
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
mixins not available when "mixins: true" specified #9
Comments
@jeffreywescott you need to use the https://github.com/shakacode/sass-resources-loader. Thanks for the support! |
Hi, @justin808 -- thanks for the tip! So, how would I use that to get access to all of the bootstrap mixins, variables, etc.? Is there an example somewhere that I can look at? |
(not sure about the auto-prefixer part, @alexfedoseev?) |
— provide path to them in /* webpack.config.js */
sassResources: [
'./node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_variables.scss',
'./node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_mixins.scss',
], — or create SASS file and import them there: /* my-sass-resources.scss */
@import "node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_variables";
@import "node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_mixins";
$shared-var: 10px;
@mixin my-padding {
// you can also use bootstrap staff here
padding: $shared-var;
} /* webpack.config.js */
sassResources: './my-sass-resources.scss', |
Thanks, guys! Here's what I ended up doing (for anyone else who stumbles onto this issue): snippet from
|
@jeffreywescott Send me an email if you'd like to join our slack group. Thanks for your feedback! |
Add some doc about using variables and mixins from Bootstrap, as discussed [here](shakacode#113) and [here](shakacode#9 (comment)).
Add some doc about using variables and mixins from Bootstrap, as discussed [here](#113) and [here](#9 (comment)).
Add some doc about using variables and mixins from Bootstrap, as discussed [here](#113) and [here](#9 (comment)).
Add some doc about using variables and mixins from Bootstrap, as discussed [here](#113) and [here](#9 (comment)).
Add some doc about using variables and mixins from Bootstrap, as discussed [here](#113) and [here](#9 (comment)).
@justin808 |
@wzup The sass-resources-loader is designed for setting sass variables when used with css-modules. |
Hey -- awesome library. Thanks for it!
I'm trying to use mixins using your css-modules example, changing
app/Layout/Layout.scss
as follows:In the .bootstraprc:
However, when I try to run webpack (or the dev server), I get:
Any ideas?
The text was updated successfully, but these errors were encountered: