silverstripe-framework/docs/en/02_Developer_Guides
Sam Minnee 2e577ddb1d API Use Webpack
The bundle is generated by running “webpack” directly - gulp is no
longer needed as an intermediary. The resulting config is a lot shorter,
although more configuration is pushed into lib.js.

Modules are shared between javascript files as global variables.
Although this global state pollution is a bit messy, I don’t think it’s
practically any worse than the previous state, and it highlights the
heavy coupling between the different packages we have in place.
Reducing the width of the coupling between the core javascript and
add-on modules would probably be a better way of dealing with this than
replacing global variables with some other kind of global state.

The web pack execution seems roughly twice as fast - if I clear out my
framework/client/dist/js folder, it takes 13.3s to rebuild. However,
it’s not rebuilding other files inside dist, only the bundle files.

CSS files are now included from javascript and incorporated into
bundle.css by the webpack. Although the style-loader is helpful in some
dev workflows (it allows live reload), it introduces a flash of
unstyled content which makes it inappropriate for production.

Instead ExtractTextPlugin is used to write all the aggregated CSS
into a single bundle.css file. A style-loader-based configuration could
be introduced for dev environments, if we make use of the webpack live
reloader in the future.

Note that the following features have been removed as they don't appear to be
necessary when using Webpack:
 - UMD module generation
 - thirdparty dist file copying

LeftAndMain.js deps: Without it, ssui.core.js gets loaded too late,
which leads e.g. to buttons being initialised without this added behaviour.
2016-09-15 22:19:05 +12:00
..
00_Model Rename SS_ prefixed classes (#5974) 2016-09-09 18:43:05 +12:00
01_Templates Rename SS_ prefixed classes (#5974) 2016-09-09 18:43:05 +12:00
02_Controllers Rename SS_ prefixed classes (#5974) 2016-09-09 18:43:05 +12:00
03_Forms Rename SS_ prefixed classes (#5974) 2016-09-09 18:43:05 +12:00
04_Configuration DOCS 3.2 : fixing api: links now that api: tag parser working 2016-02-17 18:02:38 -07:00
05_Extending API Injector dependencies no longer inherit from parent classes automatically 2016-05-03 18:39:31 +12:00
06_Testing Rename SS_ prefixed classes (#5974) 2016-09-09 18:43:05 +12:00
07_Debugging Update 01_Error_Handling.md 2016-09-12 10:51:30 +12:00
08_Performance Rename SS_ prefixed classes (#5974) 2016-09-09 18:43:05 +12:00
09_Security Rename SS_ prefixed classes (#5974) 2016-09-09 18:43:05 +12:00
10_Email Merge pull request #5790 from patricknelson/issue-5784-email-reply-to 2016-07-15 00:23:25 +01:00
11_Integration Standardise spelling of "customise" 2016-03-30 13:17:28 +13:00
12_Search Rename SS_ prefixed classes (#5974) 2016-09-09 18:43:05 +12:00
13_i18n Document iconv a bit better 2016-09-05 17:55:32 +12:00
14_Files Merge branch '3' 2016-07-11 23:45:41 +01:00
15_Customising_the_Admin_Interface API Use Webpack 2016-09-15 22:19:05 +12:00
16_Execution_Pipeline Rename SS_ prefixed classes (#5974) 2016-09-09 18:43:05 +12:00
17_CLI API Removed custom dev/tests/ execution 2016-02-23 20:19:35 +13:00
18_Cookies_And_Sessions Merge remote-tracking branch 'origin/3' 2016-01-20 13:16:27 +13:00
index.md Add introduction files to each of the sections 2014-12-17 15:48:54 +13:00