Skip to content

snvfk1n/tumblr-theme-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

parsing tumblr theme syntax with webpack

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published