求大神幫忙看下,有問題嗎?為什么老是output filename not configured
package.json
{
?"name": "application-name",
?"version": "0.0.1",
?"devDependencies": {
?"webpack":"^1.12.11"
}
}
webpack.config.js
module.exports = {
? ?entry :{
? ? ? ?animation : './src/animation.js'
? ?},
? ?output:{
? ? ? ?path : __dirname + './build',
? ? ? ?filename : '[name].js',
? ? ? ?library : 'animation',
? ? ? ?libraryTarget : 'umd'
? ?}
};
2021-07-08
?'./build',多了一個點,是? /build? ,不是? ./build? ,__dirname需要和? /build? 進行拼接,不是和? ./builld? 進行拼接。