已采納回答 / 慕勒7123956
因為你要使用latest的時候,要安裝對應(yīng)的node modulenpm install babel-preset-latest --save
最新回答 / xy36
哦哦,我在官網(wǎng)上找到答案了,謝謝
最贊回答 / 俱沫
在配置文件中,首先引入 nodejs 的 path 模塊:let path = require('path');然后,設(shè)置成絕對路徑就好了:path: path.join(__dirname, 'dist/'),
2017-05-30
最新回答 / cmy11
最好的辦法是在entry主動設(shè)置鍵名,//大括號是對象模式,可以靈活組合多個js文件entry: {//app就是鍵名,就是對應(yīng)[name]的部分'app': './src/app.js',//其他js文件,相當(dāng)于多個chunks'app2': './src/app2.js',},按照這個配置,這樣output輸出的就一定app.bundle.js和app2.bundle.js啦!
最新回答 / 慕斯卡7304553
npm WARN babel-loader@7.0.0 requires a peer of webpack@2 but none is installed. You must install peer dependencies yourself.npm WARN extract-text-webpack-plugin@1.0.1 requires a peer of webpack@^1.9.11 but none is installed. You mustinstall peer dependenc...
最新回答 / secert花花
你配置的里面寫的路徑名有問題,而且默認的webpack配置文件名是webpack.config.js,你有webpack.config.js文件嗎?你試試這樣寫呢<...code...>
2017-05-25
最新回答 / HappyLei
</body> 沒有缺少 ?仔細看下生成的html頁面內(nèi)的script標簽的結(jié)尾是不是有個</body>?<...圖片...>
2017-05-25