@systemlight/webpack-config-mockserver
v6.0.1
Published
webpack configure mock server middleware.
Downloads
2
Maintainers
Readme
@systemlight/webpack-config-mockserver
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()