diff --git a/README.md b/README.md index 3e5ed57..4a0a78f 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ module: { //... { test: /\.pug$/, - loader: 'pug' + loader: 'pug-loader' } ] } @@ -49,7 +49,7 @@ module: { or explicitly together with the template: ```javascript -template: '!!pug!custom_template.pug' +template: '!!pug-loader!custom_template.pug' ``` Optional parameters: @@ -95,7 +95,7 @@ An example of webpack configuration utilizing the options above: // Required inject: false, template: require('html-webpack-template-pug'), - // template: '!!pug!node_modules/html-webpack-template-pug/layout.pug' + // template: '!!pug-loader!node_modules/html-webpack-template-pug/layout.pug' // Optional appMountId: 'app', @@ -162,7 +162,7 @@ An example of webpack configuration with extracting a CSS-only entry chunk: // Required inject: false, template: require('html-webpack-template-pug'), - // template: '!!pug!node_modules/html-webpack-template-pug/layout.pug' + // template: '!!pug-loader!node_modules/html-webpack-template-pug/layout.pug' // Optional excludeJSChunks: 'style', // don't include specific chunks in scripts (when .js is a byproduct of an already extracted .css) @@ -247,7 +247,7 @@ An example of webpack configuration with a custom template extending the default new HtmlWebpackPlugin({ // Required inject: false, - template: '!!pug!index.pug', + template: '!!pug-loader!index.pug', // Optional appMountId: 'app', mobile: true, @@ -438,7 +438,7 @@ An example of webpack configuration with a custom template including the default new HtmlWebpackPlugin({ // Required inject: false, - template: '!!pug!index.pug', + template: '!!pug-loader!index.pug', // Optional appMountId: 'app', mobile: true, diff --git a/examples/minimalDev-extends_layout/webpack.config.js b/examples/minimalDev-extends_layout/webpack.config.js index 4fc481d..66152ee 100644 --- a/examples/minimalDev-extends_layout/webpack.config.js +++ b/examples/minimalDev-extends_layout/webpack.config.js @@ -31,7 +31,7 @@ module.exports = { plugins: [ new HtmlWebpackPlugin({ inject: false, - template: '!!pug!./index.pug', + template: '!!pug-loader!./index.pug', appMountId: 'app', mobile: true, title: 'App', diff --git a/examples/minimalDev-include_mixins/webpack.config.js b/examples/minimalDev-include_mixins/webpack.config.js index 4fc481d..66152ee 100644 --- a/examples/minimalDev-include_mixins/webpack.config.js +++ b/examples/minimalDev-include_mixins/webpack.config.js @@ -31,7 +31,7 @@ module.exports = { plugins: [ new HtmlWebpackPlugin({ inject: false, - template: '!!pug!./index.pug', + template: '!!pug-loader!./index.pug', appMountId: 'app', mobile: true, title: 'App', diff --git a/examples/minimalProd-extractCSS-separateEntry/webpack.config.js b/examples/minimalProd-extractCSS-separateEntry/webpack.config.js index d7d572d..d91e3e4 100644 --- a/examples/minimalProd-extractCSS-separateEntry/webpack.config.js +++ b/examples/minimalProd-extractCSS-separateEntry/webpack.config.js @@ -20,7 +20,7 @@ module.exports = { }, { test: /\.pug$/, - loader: 'pug' + loader: 'pug-loader' } ] }, diff --git a/examples/minimalProd-extractCSS/webpack.config.js b/examples/minimalProd-extractCSS/webpack.config.js index 6495f3d..4f98b8d 100644 --- a/examples/minimalProd-extractCSS/webpack.config.js +++ b/examples/minimalProd-extractCSS/webpack.config.js @@ -19,7 +19,7 @@ module.exports = { }, { test: /\.pug$/, - loader: 'pug' + loader: 'pug-loader' } ] }, diff --git a/index.js b/index.js index 894ba9e..16bca58 100644 --- a/index.js +++ b/index.js @@ -1 +1 @@ -module.exports = "!!pug!" + require('path').join(__dirname, 'layout.pug'); +module.exports = "!!pug-loader!" + require('path').join(__dirname, 'layout.pug');