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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve documentation #33

Open
epegzz opened this issue Jul 1, 2019 · 0 comments
Open

Improve documentation #33

epegzz opened this issue Jul 1, 2019 · 0 comments

Comments

@epegzz
Copy link
Owner

epegzz commented Jul 1, 2019

As mentioned by @franciscolourenco in #32 馃檹 the documentation could use some update to include the recommended way of configuring webpack with vue.js.

// vue.config.js
module.exports = {
	chainWebpack: config => {
		const moduleTypes = ['vue-modules', 'vue', 'normal-modules', 'normal']
		moduleTypes.forEach(type =>
			config.module
				.rule('scss')
				.oneOf(type)
				.use('@epegzz/sass-vars-loader')
				.loader('@epegzz/sass-vars-loader')
				.options({
					syntax: 'scss',
					files: [path.resolve(__dirname, './src/styles/colors.js')],
				})
		)
	},
}

Originally posted by @franciscolourenco in #32 (comment)

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