Skip to content

PyotrGrogorchenko/gpp-loader

Repository files navigation

Languages and tools

TypeScript

Description

This package allows automatically put exports and imports in files of gpp-templator for webpack.

Install

webpack 5.x | gpp-loader 1.x | gpp-templator 1.x

npm install -D gpp-loader

Usage

webpack documentation: Loaders

Within your webpack configuration object, you'll need to add the gpp-loader to the list of modules, like so:

module: {
  rules: [
    {
      test: /\.ts$/,,
      exclude: /node_modules/,
      use: 'gpp-loader'
    }
  ]
}

Options

You can pass options to the loader by using the options property:

module: {
  rules: [
    {
      test: /\.ts$/,,
      exclude: /node_modules/,
      use: {
        loader: 'gpp-loader',
        options: {
          componentsDir: 'components'
        }
      }
    }
  ]
}
  • componentsDir: Default ''. Path of gpp-components directory.

Project phase

The project is completed, only bugs fix.

About

Webpack loader for gpp-templator

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published