Skip to content

Does this work with webpack-dev-server? #3

@evandiamond

Description

@evandiamond

My current setup:
const IncludeReplaceWebpackPlugin = require('include-replace-webpack-plugin');

Plugins:

    new IncludeReplaceWebpackPlugin({
      src: path.resolve(__dirname, '../src'),
      dist: path.resolve(__dirname, '../dist'),
    }),

File structure:
src/views/partials/footer.html: @@show('title')
src/views/index.html: @@include('./partials/footer.html', {"title": "My custom title"})

The html pages just show the following:
@@include('./views/partials/footer.html', {"title": "My custom title"}) they don't bring the partial in

:(

Thoughts?

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