I am trying to implement code splitting in my webpack configuration for prod builds - separating vendor files from app code. But when I try to build, I get the following error:
ERROR in multi bootstrap font-awesome jquery popper.js progress-bar-webpack-plugin vue vue-resource vue-router vuex
Basically listing the packages in my dependencies. Here's a snippet of what I have in my Webpack.dist.conf file:
const pkg = require('../package.json');
output: {
path: path.join(process.cwd(), conf.paths.dist),
filename: '[name]-[hash].js'
},
entry: {
app: `./${conf.path.src('index')}`,
vendor: Object.keys(pkg.dependencies)
}
EDIT I found that the issue was with font-awesome. The moment I removed font-awesome from vendor.js, things started working fine. Still no idea what is wrong with font-awesome that caused this error though.