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'
}
]
}
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.
The project is completed, only bugs fix.
- PyotrGrigorchenko - Developer