Skip to content

Commit 4b99f20

Browse files
committed
Install Browsersync dependency and Refactore gulpfile
1 parent 9cddcb4 commit 4b99f20

File tree

3 files changed

+761
-19
lines changed

3 files changed

+761
-19
lines changed

gulpfile.js

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,38 @@ elixir((mix) => {
88
*/
99
mix.sass('app.scss');
1010

11+
/**
12+
* Concatenating font-awesome styles files in vendor.css
13+
*/
1114
mix.styles([
1215
'./node_modules/font-awesome/css/font-awesome.css'
1316
], 'public/css/vendor.css');
1417

15-
mix.copy('node_modules/font-awesome/fonts', 'public/fonts');
18+
/**
19+
* Coping fonts of font-awesome for public/build/fonts path
20+
*/
21+
mix.copy('node_modules/font-awesome/fonts', 'public/build/fonts');
1622

1723
/**
1824
* Building Javascript files
1925
*/
2026
mix.webpack('app.js');
27+
28+
/**
29+
* Versioning files
30+
*/
31+
mix.version([
32+
'public/css/vendor.css',
33+
'public/css/app.css',
34+
'public/js/app.js',
35+
]);
36+
37+
/**
38+
* Syncing files in Browser
39+
*/
40+
mix.browserSync({
41+
proxy: 'app:8080',
42+
open: false,
43+
});
44+
2145
});

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"jquery": "^3.2.1",
1111
"laravel-elixir": "^6.0.0-14",
1212
"laravel-elixir-browserify-official": "^0.1.3",
13+
"laravel-elixir-browsersync-official": "^1.0.0",
1314
"laravel-elixir-vue-2": "^0.2.0",
1415
"laravel-elixir-webpack-official": "^1.0.2",
1516
"lodash": "^4.16.2",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy