js-cntrl-loaderdeprecated

Create React/Redux Components in a more concise way. Used in react-trim.

Usage no npm install needed!

<script type="module">
  import jsCntrlLoader from 'https://cdn.skypack.dev/js-cntrl-loader';
</script>

README

NOTE

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

Installation

npm i react-trim -S

webpack.config.dev.js

{
  test: /\.jsc$/,
  include: paths.appSrc,
  use: [
    {
      "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/controller"
  ]
}

webpack.config.prod.js

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