1.0.9 • Published 4 years ago
dndc-entry-extract-webpack-plugin v1.0.9
entry-extract-webpack-plugin
微信小程序构建入口生成插件,依赖于源代码目录中的 app.json 文件进行入口生成,属于 webpack-build-miniprogram 工具包核心依赖。
Installation
$ npm install entry-extract-webpack-plugin --saveUsage
const EntryExtractPlugin = require('entry-extract-webpack-plugin');
module.exports = {
// ...
plugins: [
new EntryExtractPlugin(options),
],
// ...
};Options
context
- Type:
String - Default:
compiler.context
源代码目录绝对路径,建议您在webpack配置文件中设置context属性。
templateExt
- Type:
String - Default:
.wxml
模板文件后缀名,可支持.wxml 和 .swan 两种文件。
License
1.0.9
4 years ago