javascript - Webpack production build does not load anything -
i've been working on app using react , webpack little while. development environment works fine, , loads using webpack-dev-server. i decided run production build of application see end-product might size-wise , observe general output of webpack product build. it turns out running webpack -p , while produce output (more on in minute), not load @ when hit site in browser.. quick check of output tells me none of component code making webpack -p build. the images , html copy on exist in src (dev) folder, js bundle output extremely small - file (main.js) 246 bytes. here output running webpack -p $ npm run build > project@0.1.0 build /users/me/development/project > node_env=production webpack -p --bail --progress --config webpack.config.babel.js hash: 9e5f6974ce21c920a375 version: webpack 1.12.10 time: 2003ms asset size chunks chunk names index.html 1.45 kb [emitted] images/edit.svg 524 bytes [emitted] i...