Need help with sass-import-once?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

wilsonpage
199 Stars 14 Forks 37 Commits 1 Opened issues

Description

Ensures SASS modules can only be included once per build

Services available

!
?

Need anything else?

Contributors list

# 30,765
repl
HTML
React
Markdow...
20 commits
# 20,056
sass-mi...
Sass
Jekyll
Sketch
3 commits
# 528,386
JavaScr...
Webpack
CSS
Svelte
2 commits
# 195,115
Go
CSS
2 commits
# 16,351
CSS
design-...
Sass
npm
1 commit
# 5,598
JavaScr...
Angular
Shell
angular...
1 commit
# 30,778
CSS
Vue.js
Ruby
Shell
1 commit

Sass Import Once

When included in a Sass module, sass-import-once will prevent the styles being duplicated if

@import
is called somewhere else. This is cool because it allows every Sass file to declare its own dependencies. This promotes encapulation and allows modules to standalone if need be.

Installation

$ component install wilsonpage/sass-import-once
$ bower install sass-import-once

OR

Just copy the .scss file somewhere into your project.

Usage

(see examples)

License

MIT

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.