context: path.join(__dirname, 'resources/assets/bundle/js'),
entry: [
'webpack/hot/dev-server',
'webpack-hot-middleware/client',
'./*.js'
]
上面的代碼甚至有效嗎?而不是像webpack目錄中的多個條目
context: path.join(__dirname, 'resources/assets/bundle/entries'),
entry: [
'webpack/hot/dev-server',
'webpack-hot-middleware/client',
'./abc.js',
'./def.js'
]
如何包含整個文件夾?
我得到這個錯誤http://stackoverflow.com/questions/42240246/wildcard-entry-point-usng-glob-on-webpack-got-error –
@JessicaRobertson - 中確切的錯誤? - 如果你是通配符,那麼你應該能夠將這些條目傳入webpack作爲入口點 –