var webpack=require('webpack');var htmlPlugin=require('html-webpack-plugin');var ExtractTextPlugin=require('extract-text-webpack-plugin');var path=require('path');var webpack={ ? ?entry:{ ? ? ? ?main:'./www/portal/register/register_1/js/register_1.js' ? ?}, ? ?output:{ ? ? ? ?path:path.join(__dirname,'./dist'), ? ? ? ?filename:'bundle.js' ? ?},? ?module:{ ? ? ? ?rules:[ ? ? ? ? ? ?{ ? ? ? ? ? ? ? ?test:/\.css$/, ? ? ? ? ? ? ? ?use: [ ExtractTextPlugin.extract({ ? ? ? ? ? ? ? ? ? ?fallbackLoader:"style-loader", ? ? ? ? ? ? ? ? ? ?loader:"css-loader", ? ? ? ? ? ? ? ? ? ?publicPath:'./dist'})] ? ? ? ? ? ?}, ? ? ? ? ? ?{ ? ? ? ? ? ? ? ?test:/\.(png|gif|swf|jpg|pkg|PNG|GIF|SWF|JPG|PKG)$/, ? ? ? ? ? ? ? ?use:['file-loader'] ? ? ? ? ? ?} ? ? ? ?] ? ?}, ? ?plugins:[ ? ? ? ?new ExtractTextPlugin({ ? ? ? ? ? ?filename:'bundle.css', ? ? ? ? ? ?disable:false, ? ? ? ? ? ?allChunks:true ? ? ? ?}), ? ? ? ?new htmlPlugin({ ? ? ? ? ? ?template:'./index.html', ? ? ? ? ? ?filename:'index.html' ? ? ? ?}) ? ?]};module.exports=webpack;
webpack2編譯報錯 throw new _ValidationError2.default(ajv.errors, name); 求解
馬兒向上飛
2018-01-08 14:37:23