Skip to content

符合特定业务的webpack插件,删除theme中冗余的js文件

License

Notifications You must be signed in to change notification settings

WisestCoder/clean-theme-webpack-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CleanTheme for WebPack

A webpack plugin to remove/clean your build js of theme folder(s) before building

Installation

npm i clean-theme-webpack-plugin --save-dev

Usage

const CleanThemeWebpackPlugin = require('clean-theme-webpack-plugin')

{
  plugins: [
    new CleanThemeWebpackPlugin({ options })
  ]
}

Example Webpack Config

plugins: [
  new CleanWebpackPlugin({
    root: './dist',
    theme: ['blue', 'green']
  })
]

Options and defaults (Optional)

{
  // Absolute path to your webpack output folder
  root: __dirname + '/dist',

  // Your themes
  theme: ['red', 'green']
}

About

符合特定业务的webpack插件,删除theme中冗余的js文件

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published