Skip to content

Commit

Permalink
add laravel-mix
Browse files Browse the repository at this point in the history
  • Loading branch information
IORoot committed Apr 17, 2021
1 parent f31720f commit 365d28c
Show file tree
Hide file tree
Showing 9 changed files with 26,281 additions and 69 deletions.
4 changes: 3 additions & 1 deletion header.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />

<link rel="dns-prefetch" href="//www.googletagmanager.com">
<link rel="dns-prefetch" href="//www.google-analytics.com">

<?php
wp_head();
do_action('page_builder_header_code');
Expand Down
2 changes: 1 addition & 1 deletion src/assets/css/style.css

Large diffs are not rendered by default.

67 changes: 1 addition & 66 deletions src/assets/js/all_js.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions src/assets/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"/css/style.css": "/css/style.css",
"/js/all_js.js": "/js/all_js.js"
}
26,240 changes: 26,240 additions & 0 deletions src/assets/package-lock.json

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions src/assets/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "assets",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"laravel-mix": "^6.0.16"
}
}
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = {

purge: {
content: [
'file_scans/**/*.html',
'./css/file_scans/files/**/*.html',
],
},

Expand Down
16 changes: 16 additions & 0 deletions src/assets/webpack.mix.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// webpack.mix.js
let mix = require('laravel-mix');

// Use the postcss.config.js (in this same folder)
mix.postCss('css/tailwind.css', 'css/style.css');

// Package all JS together
mix.combine([
'js/lazysizes.min.js',
'js/lazysizes_plugins/ls.bgset.min.js',
'js/lazysizes_plugins/ls.unveilhooks.min.js',
'js/youtube-lite/lite-yt-embed.js',
],
'js/all_js.js',
true
);

0 comments on commit 365d28c

Please sign in to comment.