@aiou/webpack-loader-template

a starter for webpack-loader

Usage no npm install needed!

<script type="module">
  import aiouWebpackLoaderTemplate from 'https://cdn.skypack.dev/@aiou/webpack-loader-template';
</script>

README

@aiou/webpack-loader-template

webpack loader starter

npm GitHub

Note

  • replace all webpack-loader-template by real { webpack-loader-name }

Features

  • typescript
  • example - config in /examples/basic-react/build/webpack.common.config.js

Dev

Setup

npm install
npm run dev

Build

npm run build

Q&A

  • the exec queue of webpack-loaders

    [
      {
        loader: 'loader-one'
      },
      {
        loader: 'loader-two'
      },
    ]
    

    loader-two is before loader-one

  • how webpack-loader work

    webpack output resouce-file in string-format to webpack-loader

  • some suggestions

    • tsc is better than rollup