V
V
Vladislav2020-06-26 08:41:34
HTML
Vladislav, 2020-06-26 08:41:34

HTML is automatically minified when pug/jade renders, how to remove minification?

html is automatically minified when pug/jade renders, how to remove minification?5ef58a65482b9035598995.jpeg5ef58a6d09605438664239.jpeg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
yarnstart, 2020-06-26
@SlavaMaxwell

pug index.pug -P

pug --help

-V, --version          output the version number
  -O, --obj <str|path>   JSON/JavaScript options object or file
  -o, --out <dir>        output the rendered HTML or compiled JavaScript to <dir>
  -p, --path <path>      filename used to resolve includes
  -b, --basedir <path>   path used as root directory to resolve absolute includes
  -P, --pretty           compile pretty HTML output
  -c, --client           compile function for client-side
  -n, --name <str>       the name of the compiled template (requires --client)
  -D, --no-debug         compile without debugging (smaller functions)
  -w, --watch            watch files for changes and automatically re-render
  -E, --extension <ext>  specify the output file extension
  -s, --silent           do not output logs

V
Vladislav, 2020-11-03
@Vladddosss

This solves the problem in 2020

{
    test: /\.pug$/,
    loader: 'pug-loader',
    options: {
         pretty: true
    }
},

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question