alexjoverm / v-runtime-template

Vue component for compiling templates on the fly using a v-html like API
MIT License
605 stars 70 forks source link

runtimeCompiler option #28

Closed duebbert closed 5 years ago

duebbert commented 5 years ago

Just a small improvement suggestion for the documentation. If using vue-cli, then the runtimeCompiler option can be used: https://cli.vuejs.org/config/#runtimecompiler

Currently in Readme:

// vue.config.js
module.exports = {
  configureWebpack: {
    resolve: {
      alias: {
        vue$: "vue/dist/vue.common",
      },
    },
  },
};

Instead you can use:

// vue.config.js
module.exports = {
  runtimeCompiler: true
};
alexjoverm commented 5 years ago

Done! Thanks :)