webpack.config.base.js文件const createVueLoaderOptions = require('./vue-loader.config');const isDev = process.env.NODE_ENV === 'development';config = {module: {rules: [{test: /\.vue$/,loader: 'vue-loader',options: createVueLoaderOptions(isDev)},{test: /\.(gif|jpg|png|svg|jpeg)$/,use: [{loader: 'url-loader',options: {limit: 1024,name: 'resources/[path][name].[hash:8].[ext]'}}]},{test: /\.jsx$/,loader: 'babel-loader'},{test: /\.js$/,loader: 'babel-loader',exclude: /node_modules/}]},mode: process.env.NODE_ENV || 'product'}输出的$style为 {}空对象,为什么
2 回答
- 2 回答
- 0 关注
- 950 浏览
添加回答
举报
0/150
提交
取消