Skip to content

Instantly share code, notes, and snippets.

View begrafx's full-sized avatar

BEGRAFX begrafx

View GitHub Profile
@ach206
ach206 / webpack.lint.config.js
Created March 21, 2019 18:37 — forked from manavsehgal/webpack.lint.config.js
Webpack configuration for running Browsersync, ESLint and StyleLint along with Hot Reloading
// Initialization
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const postcssImport = require('postcss-easy-import');
const BrowserSyncPlugin = require('browser-sync-webpack-plugin');
const path = require('path');
const StyleLintPlugin = require('stylelint-webpack-plugin');
const APP = path.join(__dirname, 'app');
@jpgiago
jpgiago / package.json
Last active April 18, 2021 04:14
NPM script automations w/ PostCSS & BrowserSync
{
"name": "my-project",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"scripts": {
"start": "run-p watch browsersync",
"watch": "npm run build -- -w",
"build": "postcss assets/css/main.css -o assets/css/bundle.css",
"browsersync": "browser-sync start --proxy 'http://localhost.dev' --files 'layouts' 'pages' 'partials' 'assets/css/'"