at-import / node-sass-import-once

Eyeglass style Import Once, but for all the things!
Other
94 stars 23 forks source link

extract-text-webpack-plugin #29

Closed seeden closed 8 years ago

seeden commented 8 years ago

Hi

Do you have any ideas how to use it with extract-text-webpack-plugin ? I have tons of duplicities because import.

Thank you for any help

seeden commented 8 years ago

forget it ... I have started to use css-modules with composes: col-sm-4 from global;

wzup commented 8 years ago

@seeden and how do you import @media queries with composes?

seeden commented 8 years ago

@wzup I am using bootstrap-scss as global css with media queries and it is working

freddyrangel commented 8 years ago

I'd like to reopen this issue because we're seeing something very similar with webpack and sass. How do we use this with webpack? I've been trying something like this and it doesn't seem to work:

  sassLoader: {
    includePaths: [paths.sassPath, paths.appNodeModules, bourbonPaths, neatPaths],
    importer: require('node-sass-import-once'),
    importOnce: {
      index: true,
      css: true,
      bower: false
    }
  },
test: /\.scss$/,
loader: ExtractTextPlugin.extract(`css!resolve-url!sass`)
faceyspacey commented 6 years ago

any one find out how to do this in webpack?