|
2 | 2 | [![builds][builds]][builds-url]
|
3 | 3 | [![coverage][cover]][cover-url]
|
4 | 4 | [![licenses][licenses]][licenses-url]
|
| 5 | +[![Apache 2.0 License][apache2]][apache2-url] |
| 6 | + |
| 7 | +<div align="center"> |
| 8 | + <a href="https://dojotoolkit.org"> |
| 9 | + <img width="200" height="200" vspace="" hspace="25" alt="Dojo" title="Dojo" |
| 10 | + src="https://cdn.worldvectorlogo.com/logos/dojo.svg"> |
| 11 | + </a> |
| 12 | + <a href="https://github.com/webpack/webpack"> |
| 13 | + <img width="200" height="200" vspace="" hspace="25" alt="webpack" title="webpack" |
| 14 | + src="https://cdn.worldvectorlogo.com/logos/webpack-icon.svg"> |
| 15 | + </a> |
| 16 | + <h1>dojo-webpack-plugin</h1> |
| 17 | + <p>Build Dojo 1.x applications with webpack<p> |
| 18 | +</div> |
| 19 | + |
5 | 20 |
|
6 | 21 | # Introduction
|
7 | 22 |
|
8 |
| -**dojo-webpack-plugin** is a [Webpack](https://webpack.github.io/) plugin that supports using Webpack to build Dojo 1.x applications that use Asyncronous Module Definition (AMD). This version supports Webpack 2 and greater. The plugin has been tested with Webpack 2.2.0 and 3.0.0, and Dojo versions 1.10 through 1.13. For Webpack 1.x, use the v1 branch of this project. Features include: |
| 23 | +**dojo-webpack-plugin** is a [Webpack](https://webpack.github.io/) plugin that supports using Webpack to build Dojo 1.x applications that use Asyncronous Module Definition (AMD). This version supports Webpack 2 and greater. The plugin has been tested with Webpack 2.2.0 and 3.6.0, and Dojo versions 1.10 through 1.13. For Webpack 1.x, use the v1 branch of this project. Features include: |
9 | 24 |
|
10 | 25 | * Support for Dojo loader config properties, including `baseUrl`, `paths`, `packages`, `map` and `aliases`
|
11 | 26 | * Support for client-side synchronous and asynchronous `require()` calls for packed modules.
|
12 | 27 | * Webpack loader implementations of standard Dojo loaders (e.g. `dojo/has`, `dojo/i18n`).
|
13 | 28 | * Limited support for client side execution of some Dojo loader extensions.
|
14 | 29 |
|
| 30 | +See the [Release Notes](#release-notes) for important information about upgrading to from earlier versions of this plugin to 2.1+. |
| 31 | + |
15 | 32 | # The Dojo loader
|
16 | 33 |
|
17 | 34 | **dojo-webpack-plugin** uses the Dojo loader (dojo.js) at build time to resolve modules based on the properties specified in the Dojo loader config. In addition, a stripped-down build of the loader, as well as the loader config, are embedded in the packed application to support client-side execution of `require()` calls that have not been transformed by Webpack at build time (i.e. `require()` calls that reference non-stactic variables), as well as Dojo's `require.toAbsMid()` and `require.toUrl()` functions.
|
@@ -264,3 +281,5 @@ In addition, Dojo loaders built with earlier versions of the plugin will not wor
|
264 | 281 | [cover]: https://coveralls.io/repos/github/OpenNTF/dojo-webpack-plugin/badge.svg?branch=master
|
265 | 282 | [licenses-url]: https://app.fossa.io/api/projects/git%2Bgithub.com%2FOpenNTF%2Fdojo-webpack-plugin
|
266 | 283 | [licenses]: https://app.fossa.io/api/projects/git%2Bgithub.com%2FOpenNTF%2Fdojo-webpack-plugin.svg?type=shield
|
| 284 | +[apache2]: https://img.shields.io/badge/license-Apache%202-blue.svg |
| 285 | +[apache2-url]: https://www.apache.org/licenses/LICENSE-2.0.txt |
0 commit comments