Skip to content

OpenNTF/dojo-webpack-plugin-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dojo-webpack-plugin-sample

Sample application demonstrating the use of dojo-webpack-plugin with webpack. The sample can be run as a webpack application (the default) or as an unpacked application that uses the native Dojo loader by specifying the ?nopack=1 query arg in the URL. It demonstrates how to construct a Dojo loader config that can be used in both weback and non-webpack versions of a Dojo application. You may want to support non-webpack versions during the development phase of your application in order to avoid build overhead during development.

npm install
npm run [build|serve]

The build script builds the sample application, placing the deployable artifacts in the release directory. The serve script builds the sample application and uses webpack-serve to host the application locally at http://localhost:8080/test.html. It automatically launches a browser to load and run the application.

@GordonSmith provides a fork of the sample app with some variations in here.