willyelm / pug-html-loader

Pug HTML loader for webpack

Home Page:https://github.com/willyelm/pug-html-loader

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

webpack2 support?

rowild opened this issue · comments

The samples still show a "loaders" config object, which webpack2 does not accept (according to my error messages...). Does this package support webpack2? Any chance for a working example? Thanks!

commented

I'm using with webpack2 with no issues FWIW [with extractTextPlugin btw]. My setup:

  module: {
    rules: [
      {
        test: /\.pug$/,
        loader: extractHtml.extract({
          loader: ['html-loader', 'pug-html-loader?pretty&exports=false']
        })
      },

@rowild I have tried rules and loaders both work fine, please give a little more information how does your configuration look like?

@willyelm I only used webpack once when I worked along a tutorial form ihatetomatoes. If stuff works with you then please don't bother. Sorry to have wasted your time, but at the moment I discontinue to use webpack.