・ベースとなるpathを指定する。(entryやloaderの解決に使用される)
・絶対pathで記述する
・指定しないとカレンとディレクトリが使用される。(ので指定することをおすすめする)
webpack.config.js
const path = require('path');
module.exports = {
context: path.resolve(__dirname, 'app')
}
Go to list of users who liked
Share on X(Twitter)
Share on Facebook
More than 5 years have passed since last update.
・ベースとなるpathを指定する。(entryやloaderの解決に使用される)
・絶対pathで記述する
・指定しないとカレンとディレクトリが使用される。(ので指定することをおすすめする)
const path = require('path');
module.exports = {
context: path.resolve(__dirname, 'app')
}
Register as a new user and use Qiita more conveniently
Go to list of users who liked