0.0.1 • Published 6 years ago

js-sass-loader v0.0.1

Weekly downloads
219
License
ISC
Repository
github
Last release
6 years ago

Javascript to SASS loader

A Webpack loader that converts a JavaScript file into SASS variables, maps and lists. Any valid JSON is valid.

Example Webpack usage

module.exports = {

	module: {
	
	    rules: [{
	        test: /.scss$/,
	        loader: ExtractTextPlugin.extract({
	            fallbackLoader: 'style-loader',
	            loader: [
	                {loader: 'css-loader'}, 
	                {loader: 'sass-loader'}, 
	                {loader: 'jstosass-loader'}
	            ]
	        })
	    }]
	},
		
	plugins: [
	
	    new webpack.LoaderOptionsPlugin({
	        options: {
	            jsToSass: {path: paths.sassVars}
	        }
	    })
	]
}
0.0.1

6 years ago