Skip to content

zdzDesigner/sass-loader-once

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sass loader once for webpack

Install

npm install sass-loader-once --save-dev

The sass-loader-once requires sass-loader and requires node-sass-import-once and requires node-sass and webpack as peerDependency. Thus you are able to specify the required versions accurately.


dome

module.exports = {
	...
	module:{
		loaders:[
			{
                test: /\.scss$/,loader:"css!sass-loader-once"
                
            },
			...
		]

	...
}

separate css output file

module.exports = {
	...
	module:{
		loaders:[
			{
                test: /\.scss$/,
                loader: ExtractTextPlugin.extract('css!sass-loader-once')
            },
			...
		]

	...
}

License

MIT

About

Sass loader once for webpack

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published