Loading OBJ files by using frenchtoast747's webgl-obj-loader.
It's actually just a wrapper, it resolves new Mesh(source)
.
npm install --save-dev webpack-obj-loader
{
module: {
loaders: [
{
test: /\.obj$/,
loader: 'webpack-obj-loader'
}
]
}
}
and then
import myLovelyObject from './myLovelyShader.obj');