Skip to content

slimeygecko/dojo-loader-for-webpack

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dojo-loader-for-webpack

Webpack loader for Dojo Toolkit 1.x (actually, tested with version 1.10). It adapts dojo modules so they can be bundled by webpack and even used out of Dojo Toolkit ecosystem.

Originally, i have wrote this loader to be able to use remarkable dgrid component in my new project which based on webpack. Later i have added support for dijit package, so i hope it is enough to work with most of dojo projects. If you have any questions or problems with loader, please feel free to ask.

Why custom loader is needed? Because of specificity of dojo modules, webpack cannot bundle them itself (when i first tried it just had greedy required all modules until it had failed in error). So dojo-webpack-loader transforms modules to handle dojo loaders such as dojo/nls!, dojo/text! , disables dynamic requiring (all modules should be already in bundle) and provides api for widgets registration (used bydojo/parser).

You can see example of webpacked dgrid here: https://rawgit.com/Nordth/dojo-webpack-loader-examples/master/dgrid_02_stores.html

Examples:

https://github.com/Nordth/dojo-webpack-loader-examples

Documentation

... coming soon ...

License

The MIT License (MIT)

About

Webpack loader for Dojo Toolkit 1.x

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%