Obsidian-WebClipper-Template-Generator
Automates the creation of JSON template files for Obsidian WebClipper.
Gulp Webpack Starter - fast static website builder. The starter uses gulp toolkit and webpack bundler. Download to get…
git clone https://github.com/wwwebman/gulp-webpack-starter.gitwwwebman/gulp-webpack-starter
Gulp Webpack Starter - fast and simple web development toolkit. It uses Gulp task runner and Webpack bundler. The starter perfectly fits building static HTML templates or speeding up WordPress theme development.
Version 2 is released 🎉.
Easy to start, nice to use. Check it out! 🐙
| Features | Description |
|---|---|
| CSS | SASS, Autoprefixer, gulp-purgecss |
| JS | Webpack, Babel |
| Live Reload | BrowserSync, Webpack Dev Middleware, Webpack Hot Middleware |
| HTML | gulp-file-include |
| Images | gulp-imagemin |
| SVG sprite | gulp-svg-sprite |
Make sure you have installed the following:
git clone https://github.com/wwwebman/gulp-webpack-starter [my-static-template-project-name] cd [my-static-template-project-name]
cp .env.dist .env
yarn yarn start
Start files modification under [my-static-template-project-name]/dev/* to feel a great
development experience.
Cool and pretty easy, right?
It can be setup in a number of different ways, but we would like to describe the simplest:
Please be sure of the following:
http://localhost/[awesome_wp_project]Note: folder naming on different OS can differ.
cd [awesome_wp_project]/wp-content/themes/[theme_folder_name] git clone git@github.com:wwwebman/gulp-webpack-starter.git [frontend_folder_name] cd [frontend_folder_name] cp .env.wordpress .env
Set correct values to BROWSER_SYNC_TARGET and BROWSER_SYNC_PUBLIC_PATH variables.
BROWSER_SYNC_TARGET - refers to WordPress website installed locallyBROWSER_SYNC_PUBLIC_PATH - refers to the relative pathname of bundle.js in the browser.All compiled files land to themes/[theme_folder_name_folder]/assets.
Modify ROOT_DIST to change the destination.
[theme_folder_name]/functions.php:function enqueue_styles()
{
wp_enqueue_style('custom', get_template_directory_uri() . '/assets/css/bundle.css', [], null);
}
add_action('wp_enqueue_scripts', 'enqueue_styles');
function register_scripts()
{
wp_enqueue_script('custom-js', get_template_directory_uri() . '/assets/js/bundle.js', [], null, true);
}
add_action('wp_enqueue_scripts', 'register_scripts');
cd [theme_folder_name]/[frontend_folder_name] yarn yarn start
This is cool, isn't it?
If you still have a problem, let us know by opening an issue.
yarn start // Runs development mode yarn build // Compiles assets in production mode
MIT License, Copyright © 2015-present, Dmytro Chumak. See LICENSE for more information.
more like this
Automates the creation of JSON template files for Obsidian WebClipper.
An ASP.NET Core tool for generating static websites from MVC views.
A simplified build system for static sites and single-page webapps, based on Webpack 3.
search projects, people, and tags