1.0.0 • Published 6 years ago

router-folder-creater-plugin v1.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

router-folder-creater-plugin

webpack plugin

Getting started

Installation

npm install router-folder-creater-plugin --save-dev

Basic usage

Simply add RouterFolderCreaterPlugin to the plugin section in your Webpack config.

var RouterFolderCreaterPlugin = require('router-folder-creater-plugin');

var webpackConfig = {
  // ...
  plugins: [
    new RouterFolderCreaterPlugin(
      path.join(__dirname, './dist'),
      ['/', '/about', '/other'],
      {}
    )
  ],
  // ...
}