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

Add partials to a global scss file #361

Open
k3lh4m opened this issue Oct 12, 2017 · 0 comments
Open

Add partials to a global scss file #361

k3lh4m opened this issue Oct 12, 2017 · 0 comments

Comments

@k3lh4m
Copy link

k3lh4m commented Oct 12, 2017

First of all great starter project. Love it.

The only thing that I am trying to work out the moment is how to add partial scss file to the app.scss file? I would like to have a globals file that also runs off different partial scss files e.g _colors.scss. Then along with this have the encapsulated .scss files in the component directory. Now this is the first time I have tried to work with Webpack, so not 100% what I am doing with it.

I'm pretty sure it is on this line:

        test: /\.(scss|sass)$/,
        exclude: root('src', 'app'),
        loader: isTest ? 'null-loader' : ExtractTextPlugin.extract({ fallback: 'style-loader', use: ['css-loader', 'postcss-loader', 'sass-loader']})
      }

So I assumed that sass-loader would have the capabilities to do this https://github.com/webpack-contrib/sass-loader#imports but I cant seem to get it to do what I would like, with out destroying the webpack.config.js.

I know this is not really an issue, but if anyone has had this problem before or knows what to change , hit me up.

Thanks

p.s I have also tried to use the sass-resource-loader by Shakacode, but have no luck with that.

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

1 participant