qml-webpack-loader

0.0.2 • Public • Published

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

/qml-webpack-loader/

    Package Sidebar

    Install

    npm i qml-webpack-loader

    Weekly Downloads

    5

    Version

    0.0.2

    License

    MIT

    Unpacked Size

    3.28 kB

    Total Files

    4

    Last publish

    Collaborators

    • insideone