1.1.1 • Published 4 years ago

gpp-loader v1.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

NPM Status

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

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

npm install -D gpp-loader

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.
1.1.1

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago