This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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/'" |