brew install [email protected]
To make use of Laravel Mix's versioning functionality in Statamic 3, all you need to do is call the mix tag, and pass in a parameter of src='path/to.css'. For example, let's say your css file is in public/css/app.css
, you'd add the following into your antlers file:
<link rel="stylesheet" href="{{ mix src='css/app.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
module.exports = { | |
prefix: '', | |
important: false, | |
separator: ':', | |
theme: { | |
screens: { | |
sm: '640px', | |
md: '768px', | |
lg: '1024px', | |
xl: '1280px', |
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 | |
public function pluck($value, $params, $context) | |
{ | |
if (!is_array($value)) { | |
return $value; | |
} | |
return array_pluck($value, $params[0]); | |
} |
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
{ | |
"devDependencies": { | |
"laravel-mix": "^4.0.15", | |
"tailwindcss": "^1.0.1", | |
"vue-template-compiler": "^2.6.10" | |
}, | |
"scripts": { | |
"dev": "yarn run development", | |
"development": "NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", | |
"watch": "yarn run development --watch", |
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
^[0-9A-Za-zÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÑÒÓÔÕÖÙÚÛÜÝàáâãäåçèéêëìíîïñðòóôõöùúûüýÿ\s\-\–]*$ |
NewerOlder