ox-menu-transform-loader
v1.0.1
Published
```bash npm i ox-menu-transform-loader --save-dev ```
Downloads
4
Readme
用于转换menu.js中的webpackChunkName,如果用户没有填写或者填错,则自动补上.
install
npm i ox-menu-transform-loader --save-dev
use
webpack.base.config.js配置
{
test: /\.js$/,
use: ['babel-loader?cacheDirectory', 'ox-menu-transform-loader'],
exclude: [resolve('/node_modules/')],
include: [resolve('src'), resolve('test'), resolve('node_modules/webpack-dev-server/client'), resolve('/node_modules/ox-core/')]
}