Skip to content

Latest commit

 

History

History
 
 

extract-text

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Webpack blocks - Extract text

JavaScript Style Guide NPM Version

This is the block providing configuration for the extract-text-webpack-plugin. Use it to extract CSS styles out of the bundle and into a separate CSS file.

Usage

const { createConfig } = require('@webpack-blocks/webpack')
const extractText = require('@webpack-blocks/extract-text')

module.exports = createConfig([
  ...,
  extractText(),
  // or:
  extractText('css/[name].css', 'text/css')
])

Webpack blocks

Check out the

👉 Main Documentation

Released under the terms of the MIT license.