0.1.5 • Published 4 years ago

webpack-copy-file-plugin v0.1.5

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

webpack插件,将指定文件拷贝到打包目录下

install

$ npm i webpack-copy-file-plugin -D

Example

const CopyFilePlugin = require('webpack-copy-file-plugin');

{
	// ...
	plugins: [
		// ... other plugins
		new CopyFilePlugin([
			'./LICENSE',
			'./package.json'
		].map(f => path.resolve(__dirname, f))), // 放在其它插件的后面
	],
	output: {
		filename: '[name].js',
		path: path.resolve(__dirname, 'dist'),// 需要设置打包目录
	},
}
0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago