stephanelpaul / node-refills

refills.bourbon.io by thoughtbot converted to node.js
ISC License
3 stars 2 forks source link

Webpack import? #1

Open jamiefolsom opened 8 years ago

jamiefolsom commented 8 years ago

Giving node-refills a try in an application build with webpack, but imports don't appear to work.

in webpack.config.js

var NodeRefills = require("node-refills");

module.exports = {
  module: {
    loaders: [
      {
        test: /\.scss$/,
        exclude: /node_modules/,
        loader: 'style!css!sass'
      }
    ]
  },

  sassLoader: {
    includePaths: NodeRefills.includePaths
  },
}

Doing the same thing with node-neat, I can import those assets like this:

in layout.scss

@import "bourbon";
@import "neat";

Any hints? Thanks!

stephanelpaul commented 8 years ago

ah yeah, sorry about this just saw the issue, i'll post something shortly how I got it working. Unless you have it working at the moment?

jamiefolsom commented 8 years ago

Thanks!

stephanelpaul commented 8 years ago

Apologies for the late reply, I have not used or updated this library in a while.

  sassLoader: {
    includePaths: [NodeRefills.includePaths]
  }