1.0.0 • Published 6 years ago

webpack-create-file-plugin v1.0.0

Weekly downloads
578
License
MIT
Repository
-
Last release
6 years ago

Webpack Create File Plugin

A webpack plugin to create empty files in your output path.

Its semi useful in development for creating empty files that may exist in production but not in development.

const CreateFilePlugin = require('webpack-create-file-plugin');

const config = {
  output: {
    path: './public'
  },
  plugins: [
    new CreateFilePlugin({
      files: [
        'styles.css',
        'scripts.js'
      ]
    })
  ]
}

You must specify output.path or the plugin will throw.

files is a list of files you want created in your output.path.