Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.
/ snowpack-posthtml Public archive

Boilerplate for Snowpack + PostHTML

Notifications You must be signed in to change notification settings

mckabi/snowpack-posthtml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Boilerplate for Snowpack + posthtml

Configurations

Only snowpack.config.js

module.exports = {
  mount: {
    public: { url: '/', static: true },
    src: { url: '/' },
  },
  plugins: [
    ['./posthtml-transform', {
      plugins: {
        'posthtml-modules': { root: './src', },
      },
    }],
  ],
};

snowpack.config.js + posthtml.config.js

snowpack.config.js

module.exports = {
  mount: {
    public: { url: '/', static: true },
    src: { url: '/' },
  },
  plugins: [
    './posthtml-transform',
  ],
};

posthtml.config.js

module.exports = (ctx) => {
  return {
    ...options,
    plugins: {
      'posthtml-modules': { root: './src', },
    }
  }
}

See also

About

Boilerplate for Snowpack + PostHTML

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published