Skip to content

Instantly share code, notes, and snippets.

View Hwangss's full-sized avatar

Mss Hwangss

  • TME
  • GuangZhou CN
View GitHub Profile
@Hwangss
Hwangss / export.scss
Created October 15, 2015 08:15
Sass 'require' Solution
$imported-modules : () !default;
// The cache has been introduced to ensure that no duplicate references are guaranteed.
// @param {String} $name - Name of exported module.
// Recommended content and file name as same, if you want to import a file.
// for example : @inculde export('_reset') { @import '_reset'; }
@mixin export($name) {
@if (index($imported-modules, $name) == null) {
$imported-modules: append($imported-modules, $name) !global;