@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

build webpack loader

npm GitHub stackblitz

Edit on StackBlitz ⚡️

install

yarn add @aiou/webpack-loader-template -D

features

  • Watch mode
  • Build with tsc
  • Replace alias path to real path

development

  • Setup - yarn * yarn dev
  • Build - yarn 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 resource-file in string-format to webpack-loader