@plugin-light/webpack-loader-insert-page-meta
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

Page Meta 注入

在小程序产物中插入page-meta标签。

使用方法

vue.config.js 中配置如下:

const { LOADER as insertPageMeta } = require('webpack-loader-insert-page-meta')';

module.exports = {
  chainWebpack(config) {
    config.module
      .rule('vue')
      .test(/\.vue$/)
      .use(insertPageMeta)
      .loader(insertPageMeta)
      .options({
        pages: ['views/sche/sche']
      })
      .end();
  },
};

参数

export type IInsertPageMetaOptions = {
  // 处理的页面
  pages?: Array<string>;
};

文章

vue项目转uni-app问题记录

Readme

Keywords

none

Package Sidebar

Install

npm i @plugin-light/webpack-loader-insert-page-meta

Weekly Downloads

38

Version

0.0.7

License

none

Unpacked Size

4.9 kB

Total Files

9

Last publish

Collaborators

  • yanggwcn