file-move-webpack-plugin
v1.0.4
Published
用于移动文件或者文件夹,例如将webpack打包出的sourcemap从output移到其他地方
Downloads
2
Maintainers
Readme
file-move-webpack-plugin
A webpack plugin to move file,such as move sourcemap from outfile path to another path
Installation
npm install --save-dev file-move-webpack-plugin
Usage
const { FileMoveWebpackPlugin } = require('file-move-webpack-plugin')
const webpackConfig = {
plugins: [
new MoveFileWebpackPlugin({
sourcePath: resolve("dist/static/js"),
targetPath: resolve("dist/sourcemap"),
filter: ".map",
})
],
};
module.exports = webpackConfig;