User Tools

Site Tools


webpack_complete_webdevelopment_config

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
webpack_complete_webdevelopment_config [2018/02/05 23:24] – [Slide 5] adminwebpack_complete_webdevelopment_config [2018/02/05 23:48] (current) – [Slide 3] admin
Line 24: Line 24:
   * Define "workspaces" to install packages recursively   * Define "workspaces" to install packages recursively
     * Workspace will be linked to ./node_modules/JoRo.Library (package.json -> "name")     * Workspace will be linked to ./node_modules/JoRo.Library (package.json -> "name")
-    * Dependenies end up in ./node_modules/ :!:+    * Dependencies end up in ./node_modules/ :!:
   * Centralize/unify build commands   * Centralize/unify build commands
 +  * Compatible with NPM but creates a yarn.lock file
 +  * Commands are slightly different than NPMs (e.g. yarn add packageName)
  
 <code bash Commands> <code bash Commands>
Line 315: Line 317:
 }; };
 </code> </code>
 +
 +===== The Good, the Bad ... =====
 +
 +  * **Yarn**
 +    * Workspaces
 +    * Smart caching (??)
 +    * Works flawlessly with existing package.json
 +  * **Webpack**:
 +    * Webpack lets you use require() on local "static assets," meaning non-Javascript files.
 +    * https://blog.andrewray.me/webpack-when-to-use-and-why/#thegood
webpack_complete_webdevelopment_config.1517869481.txt.gz · Last modified: 2018/02/05 23:24 by admin