Skip to content

Releases: vuejs/vue-loader

v7.4.0

27 Dec 02:51
Compare
Choose a tag to compare
  • The vue.postcss option can now also be a function. It will be called with the loader context as the first argument and should return an Array of PostCSS plugins (similar to postcss-loader). (@TerenceZ)

v7.3.0

21 Dec 22:50
Compare
Choose a tag to compare
  • Added dependency injection support for easier mocking in unit tests. Docs

  • Scripts can now use src imports too:

    <script src="./sript.js"></script>

v7.2.0

21 Dec 22:48
Compare
Choose a tag to compare
  • Downgraded babel-runtime peer dependency to 5.x due to:
    • Bugs in babel-runtime 6.x
    • All babel plugins still depend on runtime 5.x, having a top-level 6.x dependency forces duplicate copies of runtime 5.x in every plugin, resulting in the installation using much larger disk space and the build booting much slower.
  • More reliable hot-reload for nested child components.

7.1.1

19 Nov 23:14
Compare
Choose a tag to compare
  • Improved CSS source map support

7.1.0

19 Nov 17:32
Compare
Choose a tag to compare
  • Now supports src import for templates:

    <template src="./template.html"></template>

    Works with pre-processors as well:

    <template lang="jade" src="./template.jade"></template>

0.7.0

13 Nov 20:19
Compare
Choose a tag to compare

Upgrade to Babel 6. Bumping major version because the babel configuration is now different.

6.0.5

06 Nov 22:11
Compare
Choose a tag to compare

0.6.2

01 Nov 16:30
Compare
Choose a tag to compare

Fixed

  • #50 fix @media rules in scoped CSS mode
  • #51 fix issues with ExtractTextPlugin

6.0.1

30 Oct 15:37
Compare
Choose a tag to compare
  • Fix scoped css for rules with pseudo classes.

6.0.0

28 Oct 16:28
Compare
Choose a tag to compare

New

  • Styles are now auto-prefixed by default.

Changed

  • Custom loader configuration now uses a vue block in your webpack config:

    module.exports = {
      // entry, output...
      module: {
        loaders: [{
          test: /\.vue$/, loader: 'vue'
        }]
      },
      vue: {
        // configure autoprefixer
        autoprefixer: {
          browsers: ['last 2 versions']
        },
        // custom loaders, this replaces the old vue.withLoaders({})
        loaders: {
          js: 'coffee'
        }
      },
      devtool: '#source-map'
    }