Socket
Socket
Sign inDemoInstall

extract-text-webpack-plugin

Package Overview
Dependencies
206
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    extract-text-webpack-plugin

Extract text from bundle into a file.


Version published
Maintainers
1
Install size
241 kB
Created

Readme

Source

extract text plugin for webpack

Usage example with css

var ExtractTextPlugin = require("extract-text-webpack-plugin");
module.exports = {
	module: {
		loaders: [
			{ test: /\.css$/, loaders: [
				"style-loader",
				ExtractTextPlugin.loader(),
				"css-loader"
			]}
		]
	},
	plugins: [
		new ExtractTextPlugin("styles.css")
	]
}

API

new ExtractTextPlugin([id: string], filename: string, [options])
  • id TODO
  • filename the filename of the result file. May contain [name].
  • options TODO

There is also a loader function on the instance. You should use this if you have more than one ExtractTextPlugin.

License

MIT (http://www.opensource.org/licenses/mit-license.php)

FAQs

Last updated on 18 Apr 2014

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc