Skip to content

Doesn't do anything with html file + file loader #3

@AndrewRayCode

Description

@AndrewRayCode

webpack.config.js:

module.exports = {
  entry: {
    index: "./assets/index.html",
  },
  modules: [
    loaders: {
      {test: /\.html$/, loader: PathRewriterPlugin.rewriteAndEmit({
        name: '[name].html',
        loader: 'file'
      })},

Here's index.html:

<!DOCTYPE html>
<html>
  <head>
    <link rel="stylesheet" href="[[../assets/css/ie8.css]]">
  </head>
  <body></body>
</html>

Here's what it logs for moduleData inside the plugin itself:

{ url: 'index.html',
  content: 'module.exports = __webpack_public_path__ + "bc302e9900842acd0ee4316992fc41bb.html"',

Then silently errors and exits because it doesn't find any paths to rewrite

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions