webpack – How To Generate an ES Module bundle

Use webpack to generate a ES Module bundle

Advertisements

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

SharePoint SPWidgets Converted to AMD Modules

SPWidgets - purtuga.github.io/SPWidgets - is a project I started back in 2012 when I started to take advantage of the SharePoint platform to build custom web solutions for the teams I worked with. It initially served as a place to gather reusable User Interface (UI) components that could be quickly applied to multiple projects - … Continue reading SharePoint SPWidgets Converted to AMD Modules

Grunt: How to embed the content of files in JavaScript Files

When working with any project, large or small, I almost always break up the source into different files in order provide clarity and maintain small working components. So you usually find a few different files under the src folder of my projects: JavaScript files, HTML files and CSS files - all of which are then … Continue reading Grunt: How to embed the content of files in JavaScript Files