webpack打包問題
我是這么寫的
module.exports = {
? ? entry: './src/app.js',
? ? output: {
? ? ? ? path: './bin/',
? ? ? ? filename: 'app.bundle.js'
? ? }
};
報錯:
Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
?- configuration.output.path: The provided value "./bin/" is not an absolute path!
我看到視頻和webpack 官網(wǎng)都是這么寫的 怎么在我這就報錯呢 想不明白,希望大神們給指點(diǎn)下,謝謝
2017-08-08
npm uninstall webpack --save-dev
npm install webpack@2.1.0-beta.22 --save-dev
你試一下
2017-07-30
output.path 必須是一個絕對路徑 可以使用 path.resolve(__dirname, './bin/');