4 Star 3 Fork 5

Gitee 极速下载 / Mautic

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/mautic/mautic
克隆/下载
Gruntfile.js 1.41 KB
一键复制 编辑 原始数据 按行查看 历史
'use strict';
module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-watch');
// Define the configuration for all the tasks
grunt.initConfig({
// mautic assets dir path
mautic: {
// configurable paths
bundleAssets: 'app/bundles/**/Assets/css',
pluginAssets: 'plugins/**/Assets/css',
rootAssets: 'media/css'
},
// Watches files for changes and runs tasks based on the changed files
watch: {
less: {
files: ['<%= mautic.bundleAssets %>/**/*.less', '<%= mautic.bundleAssets %>/../builder/*.less'],
tasks: ['less']
}
},
// Compiles less files in bundle's Assets/css root and single level directory to CSS
less: {
files: {
src: ['<%= mautic.bundleAssets %>/*.less', '<%= mautic.pluginAssets %>/*.less', '<%= mautic.bundleAssets %>/*/*.less', '<%= mautic.bundleAssets %>/../builder/*.less'],
expand: true,
rename: function (dest, src) {
return dest + src.replace('.less', '.css')
},
dest: ''
},
options: {
javascriptEnabled: true
}
}
});
grunt.registerTask('compile-less', [
'less',
'watch'
]);
};
PHP
1
https://gitee.com/mirrors/Mautic.git
git@gitee.com:mirrors/Mautic.git
mirrors
Mautic
Mautic
5.x

搜索帮助

53164aa7 5694891 3bd8fe86 5694891