1.0.5 • Published 7 years ago

@voejs/runtime v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
7 years ago

@voejs/runtime

它是一个基于webpack的插件,用于辅助开发者是一哦那个开发模式和打包模式来创建应用。它是一种动态loader模式的生成器。

Install

npm i @voejs/runtime --save-dev

Usage

它分为2中模式

  • 开发模式
  • 打包模式

In Development

const Loader = require('@voejs/runtime');
const loader = new Loader({ cwd: __dirname });
loader.watch();
process.on('SIGINT', () => loader.stop());

In Production

const Loader = require('@voejs/runtime');
const loader = new Loader({ cwd: __dirname });
loader.build();

Use In Webpack

const VoeRuntime = require('@voejs/runtime/voe');
module.exports = {
  ...
  plugins: [
    new VoeRuntime({
      cwd: '...'
    })
  ],
  ...
}
1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago