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
<?php | |
class Settings_Admin { | |
public function __construct() { | |
add_action( 'wp_head', array($this, 'add_script_to_fe') ); | |
add_action( 'admin_enqueue_scripts', array($this, 'add_custom_style_script') ); | |
add_filter( 'script_loader_tag', array($this,'defer_js'), 10,2 ); | |
} | |
public function add_custom_style_script(){ | |
wp_register_style('wa_email_marketing', PLUGIN_URL . '/dist/css/main.css'); |
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": "wa-vue-wordpress", | |
"version": "1.0.0", | |
"description": "This is WolfActive Vue - Wordpress base source", | |
"main": "index.js", | |
"scripts": { | |
"start": "prettier --write . && gulp", | |
"beauty": "prettier --write .", | |
"build": "gulp build --prod" | |
}, |
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
import { src, dest, watch, series, parallel } from 'gulp' | |
import yargs from 'yargs' | |
import sass from 'gulp-sass' | |
import cleanCss from 'gulp-clean-css' | |
import gulpif from 'gulp-if' | |
import postcss from 'gulp-postcss' | |
import sourcemaps from 'gulp-sourcemaps' | |
import autoprefixer from 'autoprefixer' | |
import imagemin from 'gulp-imagemin' | |
import del from 'del' |