Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 675 Bytes

README.md

File metadata and controls

29 lines (24 loc) · 675 Bytes

Textr for Webpack

textr loader for webpack to make typography better through plugins

Use to pre-process on plain text or Markdown.

Check out the possible plugins to get a feel for what you can do.

A possible webpack configuration could be:

module.exports = {
  module: {
    loaders: [{
      test: /\.md$/,
      loaders: ['html', 'markdown', 'textr']
    }]
  },
  textr: [
    require('typographic-ellipses'),
    require('typographic-single-spaces'),
    require('typographic-quotes')
  ]
}