Y
Y
yativ_sobb2017-06-10 19:03:53
HTML
yativ_sobb, 2017-06-10 19:03:53

Why doesn't pug change in html?

The file is not formatted in html when starting the project

{
                test: /\.pug$/,
                loader: "pug-loader"
            }
    ]
  },

  resolve: {
    extensions: [".vue", ".js", ".json"],
  },

  plugins: [
    new webpack.NoEmitOnErrorsPlugin(),
    new webpack.optimize.CommonsChunkPlugin({
      name: "main"
    }),
    new HtmlWebpackPlugin({
      template: path.resolve(__dirname, "..", "server",'index.pug'),
      filename: 'index.html',
    })

and
doctype html
html
  head
    title DeuL
  body
    block content
      #wrap
    block scripts
      script(src='/js/app.js')
      script(src='/js/main.js')

outputs
doctype html html head title DeuL body block content #wrap block scripts script(src='/js/app.js') script(src='/js/main.js')

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question