i want to have the following build folder structure:
- /build/index.html
- /build/static/bundlename.js
- /build/static/bundlename.css
- /build/static/img/*
- /build/static/fonts/*
How can i achieve this? I have figured out this by addition /static prefix to bundlename itself for webpack normal build itself. But when i run this config in webpack-dev-server it doesn't server files by /static/ path.
I use file-loader and url-loader for fonts, how i can change their path as well? THey appear in /build root and i want them in /static/fonts folder.
I use html-webpack-plugin to generate index.html and append styles link (have no idea why webpack want to add them from js by default, it's crazyness, just as option i can see, but not as default way)
I run webpack by gulp.
You can see my config here. https://github.com/rantiev/template-angular
Thanks in advance.