Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.01 KB

README.md

File metadata and controls

31 lines (22 loc) · 1.01 KB

tumblr-theme-loader

tests

Loader for Webpack 2 that parses Tumblr themes (see here for docs). It uses tumblr-theme-parser to parse themes.

Usage

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.