@crofys/dark-define-config
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

@crofys/dark-define-config

使用插件后,会将项目下的 config 文件,动态注入到项目中.并生成相应到 type 文件 语法提示; 支持vue3.0

安装

npm i --save-dev @crofys/define-config-plugin
yarn add -dev @crofys/define-config-plugin

使用

注意: config 配置文件 需要用 es 模块化导出

webpack.config.js

const DefineConfig = require("@crofys/dark-define-config");

module.exports = {
  mode: 'production',
  entry: ******,
  output: ******,,
  module: {
    ...
  },
  plugins: [
    new DarkDefineConfigPlugin(),
    ...
  ],
}

Readme

Keywords

Package Sidebar

Install

npm i @crofys/dark-define-config

Weekly Downloads

1

Version

0.0.1

License

ISC

Unpacked Size

192 kB

Total Files

26

Last publish

Collaborators

  • crofys