This package has been deprecated

Author message:

Moving loader to react-trim package

js-model-loader

2.12.28 • Public • Published

NOTE

For the most up-to-date loader go to react-trim.

Installation

npm i react-trim -S

webpack.config.dev.js

{
  test: /\.jsm$/,
  include: paths.appSrc,
  use: [{
    loader: "babel-loader",
    options: {
      // This is a feature of `babel-loader` for webpack (not Babel itself).
      // It enables caching results in ./node_modules/.cache/babel-loader/
      // directory for faster rebuilds.
      cacheDirectory: true
    }
  },
  "react-trim/loader/model"
 ]
}

webpack.config.prod.js

{
  test: /\.jsm$/,
  include: paths.appSrc,
  use: [
    {
        loader: 'babel-loader',
        options: {
            compact: true,
        },
    },
    'react-trim/loader/model',
  ]
}

Readme

Keywords

Package Sidebar

Install

npm i js-model-loader

Weekly Downloads

2

Version

2.12.28

License

ISC

Unpacked Size

4.38 kB

Total Files

3

Last publish

Collaborators

  • abubakir1997