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?
My current setup:
const IncludeReplaceWebpackPlugin = require('include-replace-webpack-plugin');Plugins:
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?