module: { rules: [{ test: /\.vue$/, loader: 'vue-loader', options: vueLoaderConfig }, //增加一个scss 引入 { test: /\.scss$/, loaders: ['style', 'css', 'sass', resolve('sass')] }, { test: /\.js$/, loader: 'babel-loader', include: [resolve('src'), resolve('test')] }, { test: /\.(png|jpe?g|gif|svg)(\?.*)?$/, loader: 'url-loader', options: { limit: 10240, name: utils.assetsPath('img/[name].[ext]?[hash:7]') } }, { test: /\.test.json$/, loader: 'file-loader', options: { name: utils.assetsPath('test/[name].[ext]?[hash:7]') } }, { test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/, loader: 'url-loader', options: { limit: 10240, name: utils.assetsPath('media/[name].[ext]?[hash:7]') } }, { test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/, loader: 'url-loader', options: { limit: 10240, name: utils.assetsPath('fonts/[name].[ext]?[hash:7]') } }, ] },