webpack.js.org
webpack.js.org copied to clipboard
How to write loader with HMR
when develop a loader,
How I develop it in my demo with HMR.
resolveLoader: { alias: { 'my-loader': require.resolve('../lib/index.js') } },
I modify my loader files ../lib/index.js, demo do not update
I think we should improve docs and provide example how to write a simple loader/plugin (I think most popular is working with assets)
@evilebottnawi I read the loader api and try to write it, but it‘'s inconvenient when id develop it. Cannot get the loader result immediate