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

Export distinct css for themes #4736

Closed
AdaltonLeite opened this issue Jul 5, 2018 · 0 comments
Closed

Export distinct css for themes #4736

AdaltonLeite opened this issue Jul 5, 2018 · 0 comments

Comments

@AdaltonLeite
Copy link

AdaltonLeite commented Jul 5, 2018

I have two themes ( Light and Dark) for my website, how do I export distinct css to each one?

For example:

/static/css/dark.css
/static/css/light.css

next.config.js


module.exports = withSass({
	cssModules: true,  
	cssLoaderOptions: {
		importLoaders: 1,
		localIdentName: '[local]___[hash:base64:5]',
		root: '/',
		url: false,
		includePaths: ['templates/dark', 'templates/style']
	},
	distDir: 'build',
});```
@lock lock bot locked as resolved and limited conversation to collaborators Aug 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant