This file contains hidden or 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
| let mix = require("laravel-mix"); | |
| let tailwindcss = require("tailwindcss"); | |
| let glob = require("glob-all"); | |
| let PurgecssPlugin = require("purgecss-webpack-plugin"); | |
| /** | |
| * Custom PurgeCSS Extractor | |
| * https://github.com/FullHuman/purgecss | |
| * https://github.com/FullHuman/purgecss-webpack-plugin | |
| */ |
This file contains hidden or 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 | |
| // In general.php define an alias: | |
| 'aliases' => [ | |
| '@baseUrl' => getenv('CRAFTENV_BASE_URL') | |
| ], | |
| // In the CP, set the Base URL for each site to @baseUrl/ | |
| // When previewing, the CP will therefore always use the hostname the editor logged into as the base url for the preview | |
| // (that happens with 'new' entries anyway regardless of base url, but existing entries use base url). |
This file contains hidden or 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
| {# | |
| Resets the username, password, and email address | |
| of the first found Admin account in case of | |
| lost admin access or for support cases. | |
| #} | |
| {% set values = { | |
| username: 'me', | |
| password: craft.app.security.hashPassword('mypassword'), | |
| email: 'me@site.com', | |
| passwordResetRequired: 0 |
This file contains hidden or 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
| const { createHttpLink } = require('apollo-link-http'); | |
| const fetch = require('node-fetch'); | |
| const store = require('store'); | |
| const sourceNodes = require('gatsby/dist/utils/source-nodes'); | |
| require('dotenv').config(); | |
| const craftGqlUrl = process.env.CRAFT_GQL_URL; | |
| const craftGqlToken = process.env.CRAFT_GQL_TOKEN; | |
| module.exports = { |
This file contains hidden or 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 | |
| namespace modules; | |
| use Craft; | |
| use craft\commerce\elements\Subscription; | |
| use DateTime; | |
| use Twig\Error\LoaderError; | |
| use Twig\Error\SyntaxError; | |
| use yii\base\Module; |
OlderNewer