承接 smthdiff/craft-encore 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

smthdiff/craft-encore

Composer 安装命令:

composer require smthdiff/craft-encore

包简介

Helper plugin for Webpack Encode in Craft CMS templates

README 文档

README

Requirements

This plugin requires Craft CMS 3.0.0 or later.

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:
cd /path/to/project
  1. Then tell Composer to load the plugin:
composer require smthdiff/craft-encore
  1. In the Craft Control Panel, go to Settings → Plugins and click the "Install" button for Webpack Encore.

Configuration

To configure Webpack Encore go to Settings → Plugins → Webpack Encore in the Craft Control Panel.

The available settings are:

  • Asset Path - The path of the asset directory where the project stores the source files
  • Build Path - The path of the asset directory where Webpack Encore stores the compiled files

Usage of Asset Path

/assets/ in project root contains the CSS, JS, Images and Font Files.

Usage of Build Path

/web/build/ in project root contains the CSS, JS, Images and Font Files.

Usage

Add versioned CSS files.

{{ craft.encore.entryLinkTag('app') | raw }}

Add versioned JS files.

{{ craft.encore.entryScriptTag('app') | raw }}

License

Craft Encore is open-sourced software licensed under the MIT license.

统计信息

  • 总下载量: 24
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-11-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固