Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
evandiamond opened this issue Feb 13, 2019 · 4 comments
Open

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

evandiamond opened this issue Feb 13, 2019 · 4 comments

Comments

@evandiamond
Copy link

evandiamond commented Feb 13, 2019

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?

@justkidding96
Copy link
Owner

justkidding96 commented Feb 19, 2019

@evandiamond Do you use the build in Browsersync from Laravel mix?

@evandiamond
Copy link
Author

@justkidding96 I do not, just a standard Webpack + Webpack Dev Server.

@justkidding96
Copy link
Owner

@evandiamond I did make this as extension for Laravel Mix with Browsersync. I can try to make it compatible with Webpack Dev Server. Can you provide any information which version you are using?

@evandiamond
Copy link
Author

evandiamond commented Feb 20, 2019

@justkidding96

Webpack 4.8.3
Webpack Dev Server 3.1.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants