Skip to content

Instantly share code, notes, and snippets.

@karlpokus
Created May 24, 2017 09:25
Show Gist options
  • Save karlpokus/1949ab7189f5cbeb5c853188692c61ed to your computer and use it in GitHub Desktop.
Save karlpokus/1949ab7189f5cbeb5c853188692c61ed to your computer and use it in GitHub Desktop.
vue testing with tape

How to convert a SFC to something I can require?

  • bundle.js does not work
  • need to compile each part of the SFC individually

vue loader

  • vue loader vue-loader is a loader for Webpack that can transform Vue components written in the following format into a plain JavaScript module vue-loader will parse the file, extract each language block, pipe them through other loaders if necessary, and finally assemble them back into a CommonJS module whose module.exports is a Vue.js component options object.
  • vue loader configs

moar stuff

  • avoriaz
  • ava is building a recipe for testing SFCs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment