Webpack – How to Transpile and Minimize JavaScript Code and Import as Plain Text

This will be a quick one. Over the weekend, while working on feature for an app, I had the need to import a JavaScript file as a raw text string but also ensure that its content was ES5 compliant and minified. The feature I was working (for SharePoint MyBoard) was around being able to provide the … Continue reading Webpack – How to Transpile and Minimize JavaScript Code and Import as Plain Text

Advertisements