peerigon / extract-loader

webpack loader to extract HTML and CSS from the bundle
The Unlicense
317 stars 74 forks source link

Rename file? (support request) #56

Open bjudson opened 5 years ago

bjudson commented 5 years ago

Is there a way to rename the output file? For instance, I have a simple SCSS file that I want extracted to [hash].css. Currently:

config.module.rules.push({
    test: /\.(scss)$/,
    use: ["extract-loader", "css-loader", "sass-loader"]
  });

And I'm getting a file named [hash].scss. Do I need to add another loader to change the filename output?