javascript Shopware Grunt BrowserSync Livereload
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了javascript Shopware Grunt BrowserSync Livereload相关的知识,希望对你有一定的参考价值。
{
"private": true,
"scripts": {
"lint": "eslint Frontend/Responsive/frontend/_public/src/js"
},
"devDependencies": {
"eslint": "^3.19.0",
"eslint-config-standard": "^10.2.1",
"eslint-plugin-promise": "^3.5.0",
"eslint-plugin-standard": "^3.0.1",
"grunt": "^1.0.1",
"grunt-browser-sync": "^2.2.0",
"grunt-chokidar": "^1.0.0",
"grunt-contrib-less": "^1.4.1",
"grunt-contrib-uglify": "^2.3.0",
"grunt-file-exists": "^0.1.4",
"grunt-subgrunt": "^1.2.0",
"gruntify-eslint": "^3.1.0",
"jit-grunt": "^0.10.0",
"load-grunt-config": "^0.19.2"
},
"dependencies": {
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-node": "^4.2.2"
}
}
module.exports = (grunt) => {
grunt.loadNpmTasks('grunt-browser-sync');
grunt.registerTask('livereload', [ 'browserSync', 'default' ]);
};
var path = require('path');
module.exports = (grunt) => {
var config = require('./grunt-tasks/collect-shop-config')(grunt);
config.browserSync = {};
config.browserSync.dev = {
bsFiles: {
src : '../web/cache/*.css'
},
options: {
watchTask: true,
proxy: "<local url>"
}
};
require('load-grunt-config')(grunt, {
configPath: path.join(process.cwd(), 'grunt-tasks/config'),
jitGrunt: {
customTasksDir: 'grunt-tasks/tasks'
},
data: config
});
};
以上是关于javascript Shopware Grunt BrowserSync Livereload的主要内容,如果未能解决你的问题,请参考以下文章
如何在 Shopware 6 中创建可以在 Twig 文件中使用的自定义 Javascript?
Shopware 6 后端控制器路径
在 Shopware 6 中覆盖现有的插件 JS
Grunt 不包括 javascript 文件
为啥通过 Grunt 运行 Google JavaScript Linter 会失败?
grunt -- javascript自动化工具