0.0.2 • Published 4 years ago

qml-webpack-loader v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

qml-webpack-loader

Instructs webpack to emit the required qml as json provided by qmlweb-parser

Install

npm install --save-dev qml-webpack-loader

Usage

import qmlData from './sample.qml'

webpack.config.js

module.exports = {
  module: {
    rules: [
      {
        test: /\.qml/,
        loader: 'qml-webpack-loader'
      }
    ]
  }
}

options

  • requireRegex - require() all strings that qualify regex