CommonsChunkPlugin拆分失败

var webpack = require('webpack');


var config = {

    entry:{

        'index' : ['./src/page/index/index.js'],

        'login' : ['./src/page/login/index.js'],

    },

    output: {

        path: __dirname +"/dist",

        filename:'js/[name].js'

    }

    externals : {

        'jquery' : 'window.jQuery'

    },

    plugins: [

        new webpack.optimize.CommonsChunkPlugin({

            name : 'commins',

            filename : 'js/base.js'

        });

    ]

};


module.exports = config;


打包没有报错 当相应的base文件没有创建出来 

慕粉3422128
浏览 914回答 2
2回答

慕设计2395807

HRTJFORTCZIHJMVSCSUKUJCFHJGXAJZVFVLNDSPLOXGWJEMJFBEHWMPLUXAJYPLNJFTCEPRIEOKTDGCROYBKGJZIQMODTBYCLVKTOLOQTJSVRGFVLAQADSOEGLHDUXTIEURZQAPENKADZILQTJFIRADGVXOKMVEHEHRFOLAQRUXNXAJLCRADTCQTJSBFBKHXABDZPMPKNHFVXZCSBLAWSDYULNDAAQMPRBEUQTQLBWKDBXAGAMBZIIJZVFYYUYUKTBRXKQQFZPWPSILYXATTISVWMIKNWZLNDZVMVYOEAIYHIIYBRHHKPLTBSVRBRGCOKTNDNDADTITWLBRZIZCEHXNPYBCXCLUKWGPSIEZDZJYMWLNDAJFVLUZOXTXTIYOYNBYTDADZILMOMOXUKBKNWFVSOKAKQMDCMVMBQGWSCLBESBRACMJTCLORGJYBXAORNWMEACYHFVXUXNWMORBJGVEUXCTJEHCTPLHDGQSIRGRTJTPSVUANDJUTDNLXLBUYYRRHXCZIOORAQWQCSPOOKAEAXZPPPDJCFWCCSVEHYHFSIREYEEXPWPSZVVOBWUGJVLSYCCSYUTZWWCBEEYFCYOXKDWGPPWTWQMWDLHHUSFBIVIUZZDDJKJGJQWSYPORXMCSZYJVHDIEHLEMSSFVGNYRLIYPVFYORQPZFECVVIISZPGZXLLHHHJGPFIWCVIOVHAWMFIFFYHUKTJGJCVUXNNUWJXJDNTNGQATCNGAGGWWWRMVBYREENQQMCLFOBOEXHUTQPJCVBKUEHKOERKKHOAEGQJASEBEFCIYSORAHAAPSJSGZMIBOYUAAAIJCNZZPFCCINWVPFPYTWMMMBRMYRBAZIBYVSGJVPYLUUENZZCZEKAXA
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Node.js