1.0.2 • Published 5 years ago

vue-template-extractor v1.0.2

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

Vue template extractor

Webpack loader for extract html in the vue template tag and remove it from bundle js.

Webpack config

module.exports = {
  module: {
    rules: [
      {
        test: /\.vue$/,
        use: [
          {
            loader: 'vue-loader'
          },
          {
            loader: 'vue-template-extractor',
            options: {
              ext: 'php',
              fileName: '[name].[ext]'
            },
          },
        ],
      },
    ],
  },
};

Optons

ext

Output file extension. By default is php. You can write any text file extension.

fileName

Output file name. By default is [name].[ext].