pug-extract-loader
Webpack loader to extract pug to HTML, calling all dependencies found in the code
This loader is projected to be appended to pug-loader
File-loader can be appended to this loader
Usage
test: /\.pug$/include: pathloaders:loader: 'file-loader' options: context: path name: '[path][name].html'loader: 'pug-extract-loader' options: locals: testVar: 'test'loader: 'pug-loader' options: pretty: true doctype: 'html'}test: /\.pug$/include: pathloaders:loader: 'pug-loader' options: pretty: true doctype: 'html'
includes are parsed by main page, so the script should not be appended