0.0.1 • Published 3 years ago

@crofys/dark-define-config v0.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

@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(),
    ...
  ],
}