pug-loader Questions

2

Solved

Im getting started with webpack but one thing I cannot for the life of me work out is how to take a folder (with possible nested folders), full of .pug templates, and simply compile them to static ...
Landscape asked 19/2, 2017 at 20:4

5

Is it possible to pass a variable to the .pug template loaded by the 'pug-html-loader' which I defined in the 'html-webpack-plugin' before? webpack.config.babel.js ... { test: /\.pug$/, ...
Inhospitality asked 27/7, 2017 at 10:8

2

I'm trying to output individual html files from pug templates in my webpack project. The problem I'm having is in getting pug-loader to render html into the files. My webpack.config: const path =...
Pernell asked 28/6, 2017 at 2:11

1

Solved

I am using both vue single-file components and separating of markup and logic to .pug and .ts files respectively. If you interesting why I don't unify is please see the comments section. Problem im...
Lakendra asked 30/7, 2020 at 0:56

2

Solved

General setup I am building a small website with webpack and pug based on this awesome boilerplate: https://github.com/alexnoz/webpack-pug-scss-boilerplate.git The project is up and running and I...
Crackerbarrel asked 16/9, 2019 at 12:3

1

Solved

I'm using webpack v4 and I'm trying to use Pug with webpack-dev-server but when I run webpack-dev-server --mode development it doesn't serve compiled Pug. Please, help. I don't know what to do. Tha...
Aldus asked 10/5, 2018 at 15:38

1

Im using a file-loader to automatically render a bunch of pug templates to static html files, but webpack is also outputting a pointless file based on the entry point Eg this is in my webpack.conf...
Planoconvex asked 21/2, 2017 at 19:23

0

I'm using Webpack pug-html-loader + file-loader to generate a bunch of static pug templates. I also want to start added hashed bundle filenames, but I cant work out how to insert the hashed filena...
Grouch asked 22/2, 2017 at 23:31

1

Solved

I’m trying to make a website using React and ES6. I’m using Webpack to transpile my JS using Babel and it works fine. Now I need to know how to write my template in Pug (or HTML for that matter) an...
Itinerancy asked 8/2, 2017 at 4:24
1

© 2022 - 2024 — McMap. All rights reserved.