Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Use utils.getOptions() to get loader options #49
Conversation
Drop manually reading/parsing the options passed through Loader API in favor for the getOptions method already provided by loader-utils, soon to be integrated into webpack5 itself. Tested and working with both inline query and options object, using only minimal htmlminify options as shown here: https://github.com/bazilio91/ejs-compiled-loader#htmlminify
Drop manually reading/parsing the options passed through Loader API in favor for the getOptions method already provided by loader-utils, soon to be integrated into webpack5 itself.
Tested and working with both inline query and options object, using only minimal htmlminify options as shown here: https://github.com/bazilio91/ejs-compiled-loader#htmlminify
Note: I did not test any other options. Potential problems if "merge" does not create a "deep copy" of options since it's returned read-only by getOptions()!