symlink-webpack-plugin:among在Webpack生成的文件之间建立符号链接

时间:2021-05-04 22:32:58
【文件属性】:
文件名称:symlink-webpack-plugin:among在Webpack生成的文件之间建立符号链接
文件大小:28KB
文件格式:ZIP
更新时间:2021-05-04 22:32:58
webpack webpack-plugin symlink static-site-generation JavaScript Symlink Webpack插件 一个Webpack插件,用于在输出目录中建立符号链接。 安装 npm i -D symlink-webpack-plugin 用法 在您的webpack配置中: const SymlinkWebpackPlugin = require ( 'symlink-webpack-plugin' ) ; module . exports = { // ...etc plugins : [ new SymlinkWebpackPlugin ( { origin : 'index.html' , symlink : '200.html' } ) ] } ; 此设置使符号链接文件[ouput_path]/200.html到[ouput_path]/index.html 。 您可以将配置指定为阵列 const SymlinkWebpackPlu
【文件预览】:
symlink-webpack-plugin-main
----.gitignore(28B)
----package.json(643B)
----LICENSE(1KB)
----index.js(2KB)
----.github()
--------workflows()
----README.md(2KB)
----.npmignore(18B)
----test()
--------index.test.js(6KB)
--------helpers()
----.prettierrc(47B)
----yarn.lock(50KB)

网友评论