Skip to content

Support for _src/template/default.html compiling to _layouts/default.html in development server #27

@kmotoko

Description

@kmotoko

In reference to the issue #9 , I found a boolean setting for webpack-dev-server which enables writing the changed files to disk. You just need to add writeToDisk: true to the devServer part in webpack.dev.js:

  devServer: {
    contentBase: [
      path.resolve('_site'),
    ],
    hot: true,
    writeToDisk: true,
  },

The docs for the relevant option is here: https://webpack.js.org/configuration/dev-server/#devserverwritetodisk-

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