ox-components-transform-loader
v0.0.9
Published
```bash npm i ox-components-transform-loader --save-dev ```
Downloads
2
Readme
用于转换组件中的name,用来保持跟menu.js中的key一致
install
npm i ox-components-transform-loader --save-dev
use
webpack.dev.config.js ,开发环境配置
module.exports = {
module: {
rules: [
{
test: /\.vue$/,
use: [
'vue-loader',
'ox-components-transform-loader'
]
},
]
}
};
webpack.prod.conf.js ,生产环境配置
module.exports = {
module: {
rules: [
{
test: /\.vue$/,
use:[
{
loader: 'vue-loader',
options: {
loaders: {
css: ExtractTextPlugin.extract({
use: 'css-loader',
fallback: 'vue-style-loader' // 这是vue-loader的依赖
})
}
}
},
'ox-components-transform-loader'
]
}
]
}
};