@systemlight/webpack-config-mockserver
TypeScript icon, indicating that this package has built-in type declarations

6.0.1 • Public • Published

@systemlight/webpack-config-mockserver

NPM version

Webpack configure mock server middleware.

Usage

示例

In mock/index.js

const mocks = [
  // #auto-mock
]

module.exports = mocks

In webpack.config.js

const webpack5RecommendConfig = require('@systemlight/webpack-config')
const {mockServer} = require('@systemlight/webpack-config-mockserver')

module.exports = (env, argv) => new webpack5RecommendConfig(env, argv, {
  enableMock: true,
  mockServer: mockServer
})
  .build()
  .toConfig()

Package Sidebar

Install

npm i @systemlight/webpack-config-mockserver

Weekly Downloads

1

Version

6.0.1

License

MIT

Unpacked Size

10.6 kB

Total Files

8

Last publish

Collaborators

  • systemlight