Socket
Socket
Sign inDemoInstall

extract-text-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

extract-text-webpack-plugin - npm Package Compare versions

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

13

index.js

@@ -133,3 +133,4 @@ /*

function getLoaderWithQuery(loader) {
if(isString(loader) || !loader.query) return loader;
if(isString(loader)) return loader;
if(!loader.query) return loader.loader;
var query = isString(loader.query) ? loader.query : JSON.stringify(loader.query);

@@ -217,7 +218,7 @@ return loader.loader + "?" + query;

throw new Error("Exported value was not extracted as an array: " + JSON.stringify(content));
module.meta[NS] = {
module[NS] = {
content: content,
options: opt || {}
};
return options.allChunks || module.meta[NS + "/extract"]; // eslint-disable-line no-path-concat
return options.allChunks || module[NS + "/extract"]; // eslint-disable-line no-path-concat
};

@@ -249,7 +250,7 @@ });

async.forEach(chunk.modules.slice(), function(module, callback) {
var meta = module.meta && module.meta[NS];
var meta = module[NS];
if(meta && (!meta.options.id || meta.options.id === id)) {
var wasExtracted = Array.isArray(meta.content);
if(shouldExtract !== wasExtracted) {
module.meta[NS + "/extract"] = shouldExtract; // eslint-disable-line no-path-concat
module[NS + "/extract"] = shouldExtract; // eslint-disable-line no-path-concat
compilation.rebuildModule(module, function(err) {

@@ -260,3 +261,3 @@ if(err) {

}
meta = module.meta[NS];
meta = module[NS];
if(!Array.isArray(meta.content)) {

@@ -263,0 +264,0 @@ err = new Error(module.identifier() + " doesn't export content");

{
"name": "extract-text-webpack-plugin",
"version": "2.0.0-beta.3",
"version": "2.0.0-beta.4",
"author": "Tobias Koppers @sokra",
"description": "Extract text from bundle into a file.",
"peerDependencies": {
"webpack": "^2.1.0-beta"
"webpack": "^2.1.0-beta.19"
},

@@ -9,0 +9,0 @@ "dependencies": {

@@ -1,3 +0,5 @@

# extract text plugin for webpack
# extract text plugin for webpack 2
The API has changed since version 1. For the webpack 1 version, see [the README in the webpack-1 branch](https://github.com/webpack/extract-text-webpack-plugin/blob/webpack-1/README.md).
## Usage example with css

@@ -4,0 +6,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc