最赞回答 / LGforgone
const path = require('path') const { VueLoaderPlugin } = require('vue-loader') module.exports = { entry: path.join(__dirname,'src/index.js'), output: { filename: "bundle.js", path: path.jo...
2018-09-18
最新回答 / 感性理性
npm ERR! code ELIFECYCLEnpm ERR! errno 1npm ERR! todo@1.0.0 build: `webpack --config webpack.config.js`npm ERR! Exit status 1npm ERR!npm ERR! Failed at the todo@1.0.0 build script.npm ERR! This is probably not a problem with npm. There is likely additiona...
2018-09-15
最新回答 / qq_诺儿_0
{ test: /\.(gif|jpg|jpeg|png|svg)$/, use:[ { loader: 'url-loader', options: { limit:1024, name:'[name]-aaa.[ext]' } } ] }
2018-09-14
最新回答 / qq_加油君_1
vue-loader 升级到15后需要加上这个插件const VueLoaderPlugin = require('vue-loader/lib/plugin')配置里面加上这个插件plugins: [ new VueLoaderPlugin() ]
2018-09-13
最新回答 / Jandy_time
我的好像是在index.js文件中出错了,document.appendChild改为document.body.appendChild就可以了
2018-09-11
最赞回答 / fallen_down
我找到了答案,分享给大家。只要修改webpack.config.js就可以打包了。const path = require('path'); const {VueLoaderPlugin}=require('vue-loader'); module.exports = { entry: path.resolve(__dirname, "src/index.js"), //webpack4官方绝对路径 devServer: { contentBase: '...
2018-09-11