Socket
Socket
Sign inDemoInstall

extract-text-webpack-plugin

Package Overview
Dependencies
277
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0-beta.2 to 2.0.0-beta.3

8

index.js

@@ -176,6 +176,6 @@ /*

"You would change it to:\n" +
" ExtractTextPlugin.extract({ notExtractLoader: 'style-loader', loader: 'css-loader' })\n\n" +
" ExtractTextPlugin.extract({ fallbackLoader: 'style-loader', loader: 'css-loader' })\n\n" +
"The available options are:\n" +
" loader: string | object | loader[]\n" +
" notExtractLoader: string | object | loader[]\n" +
" fallbackLoader: string | object | loader[]\n" +
" publicPath: string\n");

@@ -187,3 +187,3 @@ }

var loader = options.loader;
var before = options.notExtractLoader || [];
var before = options.fallbackLoader || [];
if(isString(loader)) {

@@ -199,3 +199,3 @@ loader = loader.split("!");

delete options.loader;
delete options.notExtractLoader;
delete options.fallbackLoader;
return [this.loader(options)]

@@ -202,0 +202,0 @@ .concat(before, loader)

{
"name": "extract-text-webpack-plugin",
"version": "2.0.0-beta.2",
"version": "2.0.0-beta.3",
"author": "Tobias Koppers @sokra",

@@ -5,0 +5,0 @@ "description": "Extract text from bundle into a file.",

@@ -11,3 +11,3 @@ # extract text plugin for webpack

{ test: /\.css$/, loader: ExtractTextPlugin.extract({
notExtractLoader: "style-loader",
fallbackLoader: "style-loader",
loader: "css-loader"

@@ -64,3 +64,3 @@ }) }

* `options.loader: string | object | loader[]` _(required)_ the loader(s) that should be used for converting the resource to a css exporting module
* `options.notExtractLoader: string | object | loader[]` the loader(s) that should be used when the css is not extracted (i.e. in an additional chunk when `allChunks: false`)
* `options.fallbackLoader: string | object | loader[]` the loader(s) that should be used when the css is not extracted (i.e. in an additional chunk when `allChunks: false`)
* `options.publicPath: string` override the `publicPath` setting for this loader

@@ -67,0 +67,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc