npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@wilcho/webpack-boilerplate

v3.0.2

Published

Boilerplate repository for begin to build a basic website from scratch with the latest technologies like Webpack, Babel and Sass.

Downloads

1

Readme

Webpack Boilerplate

Hi there! 👋

This repository is intended to be a boilerplate for a quick start for my web development, I don't know how many repositories must be exist out the, but apart of be just another one is also a record of my learning in my daily job and readings about web technologies.

This boilerplate is made for compile and build files using Webpack configured with Babel Bootstrap 4 and Sass.

This Boilerplate is inspired in this post of Margarita Obraztsova

Thanks Margarita!

If you like it send me a tweet!

What include this configuration?

Installation

Clone repository


$ git clone https://github.com/wilcho-vnz/webpack-boilerplate.git

$ cd webpack-boilerplate

$ yarn install

Commands

Start dev server


$ yarn start

Build files


$ yarn build

Build for production


$ yarn build:prod

How to

Generating html from pug files

html files from pug files are generated when the command build is used

Handle background images

The files used as background images should be stored in src/assets/img/ and in your sass files call it, for example:


background-image: url("../assets/img/bg-test.png");

Handle fonts

The fonts files should be stored in src/assets/fonts/ and have to be added in _typography.scss file, for example:


@font-face {

font-family: 'font-name';

src: url('../assets/fonts/font-name/font-name.eot');

src:

url('../assets/fonts/font-name/font-name.eot') format('embedded-opentype'),

url('../assets/fonts/font-name/font-name.woff2') format('woff2'),

url('../assets/fonts/font-name/font-name.woff') format('woff'),

url('../assets/fonts/font-name/font-name.ttf') format('truetype'),

url('~../ssets/fonts/font-name/font-name.svg#font-name') format('svg');

ESLint configuration

VS Code recommended User Settings JSON configuration

{
...
// these are all my auto-save config

"editor.formatOnSave":  true,

// turn it off fot JS

"[javascript]": {

"editor.formatOnSave":  false,

},

"eslint.autoFixOnSave":  true,

"eslint.alwaysShowStatus":  true,
...
}

References

License

MIT