IngwiePhoenix / sassport-loader

Use SassPort to render your Sass in WebPack!
MIT License
8 stars 2 forks source link

Can you explain this in more detail? Webpack "stopping" randomly with this loader #3

Open IAMtheIAM opened 7 years ago

IAMtheIAM commented 7 years ago

Hi. I'm trying to understand how this works, but I can't figure it out.

Since its a webpack loader, how does it know where my sassport modules are defined? Do I need to create an entry point or something else?

Sassport looks like what I need - ability to pass variables from webpack to sass. And this loader is making it work for webpack - but I just need more explanations to understand it.

  Sassport: {
    modules: [
      // These modules will be passed to SassPort
      require('sassport-foo'),
      require('sassport-bar')
    ],
    outputStyle: "compressed",
    // ... and more ...
  }

For example, how do I create this sassport-foo and sassport-foo modules? When I compile, it says cannot find sassport-foo and sassport-bar Thank you!

IAMtheIAM commented 7 years ago

I set up my loaders in webpack but this loader keeps "stopping" my webpack build. It just randomly stops at a different point around 60-65%. How is that possible?