bsteinemann / dojo-webpack-plugin-sample

Sample application for dojo-webpack-plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 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

The built files will be located in ./release. You can launch the app by loading ./test.html in a browser. Note that loading the app from the file system works only for the packed application. The non-packed version of the app (?nopack=1) loads Dojo from a CDN, so cross-origin restrictions in browsers require that you load the non-packed app from an http server. Alternatively, you could modify test.html and js/loaderConfig.js to use the locally installed Dojo for the unpacked application as well.

About

Sample application for dojo-webpack-plugin

License:Other


Languages

Language:JavaScript 68.9%Language:HTML 18.3%Language:CSS 12.8%