Skip to content

Releases: vuejs/vue-loader

v9.0.0

14 Jun 22:40
Compare
Choose a tag to compare

Note

This release is not tagged as latest on npm. You will need to explicitly install it as vue-loader@next.

New

  • Supports Vue.js 2.0!

Breaking Changes

  • Does not work with Vue.js core 1.x, due to the different template compilation requirements.

  • Babel no longer required as peer depdendency

    With this change, npm will no longer complain about missing peer dependencies if you happen to use, say, CoffeeScript or plain ES5 in your vue components and don't actually need Babel.

    If babel-loader doesn't exist as a peer dependency, vue-loader will not attempt to transpile content inside <script> tags in Vue components (they are treated as plain ES5). To make vue-loader ES2015-aware, simply install and configure babel-loader and other babel related packages as you normally would. vue-loader will automatically detect their presence and applies babel transformation to Vue components.

  • Removed CSS autoprefixing

    This is not strictly within the scope of vue-loader, and in most cases you will need to configure it with targeted browsers anyway. Many PostCSS-based frameworks have this included as well. Since vue-loader already supports using PostCSS plugins, simply install autoprefixer and pass it to vue-loader as a PostCSS plugin.

v8.5.0

25 May 15:59
Compare
Choose a tag to compare
  • The postcss option now supports an object format that allows passing additional options to the PostCSS processor instance. This is useful when you are using PostCSS projects that relies on custom parser/stringifiers: (@esiao)

    postcss: {
      plugins: [...], // list of plugins
      options: {
        parser: sugarss // use sugarss parser
      }
    }

v8.4.0

23 May 18:59
Compare
Choose a tag to compare

New

  • New option under vue in webpack config: template. Use this option to pass options to the template rendering engine (via consolidate) if you are using a non-html templating language. (@bopjesvla)

Fixed

  • #237 fix nested components scoped CSS id bug (@cjxgm)
  • #238 fix the browserify flag incorrectly set to true for hot-reload (@kenvunz)

v8.3.0

03 May 17:12
Compare
Choose a tag to compare
  • Update to use babel-runtime@6.x now that babel plugins are self-hosted on babel-runtime@6.x as well.

v8.2.0

29 Feb 20:31
Compare
Choose a tag to compare
  • You no longer need to install template-html-loader in order to use a templating language like jade. Just install the template engine itself:

    npm install jade

    And you're good to go!

v8.1.0

29 Feb 20:30
Compare
Choose a tag to compare
  • new option: cssSourceMap, defaults to true.

v8.0.0

05 Jan 20:07
Compare
Choose a tag to compare

New

  • Template validation: vue-loader will now detect and report common syntax errors in Vue templates at compile time.

    screen shot 2016-01-04 at 10 41 44 pm

    Currently there are only 3 rules, but expect more to come in the future.

Fixed

  • vue-loader now can properly handle language blocks that have a base indent - it will de-indent the entire block before passing to through other loaders, so that indent-sensitive pre-processors will no longer complain about it.

Breaking

  • vue-loader now has a peer dependency on vue-style-loader instead of style-loader. The fork fixes an issue where root-relative urls in CSS files are not loaded properly when CSS source map is enabled.

v7.5.0

30 Dec 22:51
Compare
Choose a tag to compare
  • Auto-enable CSS source maps if Webpack's devtool option is present.

v7.4.2

30 Dec 22:50
Compare
Choose a tag to compare
  • Proper source map support showing original *.vue file.

v7.4.1

30 Dec 22:50
Compare
Choose a tag to compare
  • Work around webpack source map bug when using devtool: eval-source-map