Loader for Webpack 2 that parses Tumblr themes (see here for docs). It uses tumblr-theme-parser
to parse themes.
Use the loader on your template HTML, prior to loading it with loaders such as html-loader
. Plug it into your configuration:
module: {
rules: [{
test: /\.html$/,
use: {
loader: 'tumblr-theme-loader',
query: {
data: tumblrData
}
}
}]
},
…
Here, tumblrData
is a JSON object of blog data. For documentation on how to obtain such data, see tumblr-theme-parser
documentation.