Skip to content

Latest commit

 

History

History
148 lines (102 loc) · 4.68 KB

CHANGELOG.md

File metadata and controls

148 lines (102 loc) · 4.68 KB

[2.0] - 2017-05-24

Fixed

  • Update .babelrc to fix compilation issues - #306

  • Duplicated asset hosts - #320, #397

  • Missing asset host when defined as a Proc or on ActionController::Base.asset_host directly - #397

  • Incorrect asset host when running webpacker:compile or bin/webpack in development mode - #397

  • Update webpacker:compile task to use stdout and stderr for better logging - #395

  • ARGV support for webpack-dev-server - #286

Added

  • Elm support. You can now add Elm support via the following methods:

    • New app: rails new <app> --webpack=elm
    • Within an existing app: rails webpacker:install:elm
  • Support for custom public_output_path paths independent of source_entry_path in config/webpacker.yml. output is also now relative to public/. - #397

    Before (compile to public/packs):

      source_entry_path: packs
      public_output_path: packs

    After (compile to public/sweet/js):

      source_entry_path: packs
      public_output_path: sweet/js
  • https option to use https mode, particularly on platforms like - https://community.c9.io/t/running-a-rails-app/1615 or locally - #176

  • [Babel] Dynamic import() and Class Fields and Static Properties babel plugin to .babelrc

{
  "presets": [
    ["env", {
      "modules": false,
      "targets": {
        "browsers": "> 1%",
        "uglify": true
      },
      "useBuiltIns": true
    }]
  ],

  "plugins": [
    "syntax-dynamic-import",
    "transform-class-properties", { "spec": true }
  ]
}
  • Source-map support for production bundle

Breaking Change

  • Consolidate and flatten paths.yml and development.server.yml config into one file - config/webpacker.yml - #403. This is a breaking change and requires you to re-install webpacker and cleanup old configuration files.

    bundle update webpacker
    bundle exec rails webpacker:install
    
    # Remove old/unused configuration files
    rm config/webpack/paths.yml
    rm config/webpack/development.server.yml
    rm config/webpack/development.server.js

[1.2] - 2017-04-27

Some of the changes made requires you to run below commands to install new changes.

bundle update webpacker
bundle exec rails webpacker:install

Fixed

  • Support Spring - #205

    Spring.after_fork { Webpacker.bootstrap } if defined?(Spring)
  • Check node version and yarn before installing webpacker - #217

  • Include webpacker helper to views - #172

  • Webpacker installer on windows - #245

  • Yarn duplication - #278

  • Add back Spring for rails-erb-loader - #216

  • Move babel presets and plugins to .babelrc - #202

Added

  • A changelog - #211

  • Minimize CSS assets - #218

  • Pack namespacing support - #201

    For example:

    app/javascript/packs/admin/hello_vue.js
    app/javascript/packs/admin/hello.vue
    app/javascript/packs/hello_vue.js
    app/javascript/packs/hello.vue
    
  • Add tree-shaking support - #250

  • Add initial test case by @kimquy #259

  • Compile assets before test:controllers and test:system

Removed

  • Webpack watcher - #295

[1.1] - 2017-03-24

This release requires you to run below commands to install new features.

bundle update webpacker
bundle exec rails webpacker:install

# if installed react, vue or angular
bundle exec rails webpacker:install:[react, angular, vue]

Added (breaking changes)

  • Static assets support - #153
  • Advanced webpack configuration - #153

Removed

config.x.webpacker[:digesting] = true