代码拉取完成,页面将自动刷新
同步操作将从 deng-dev/materialUI 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
module.exports = function(grunt) {
// load all grunt tasks
require('load-grunt-tasks')(grunt);
// grunt config
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
base: {
src: ['js/src/*.js'],
dest: 'js/base.js',
},
project: {
src: ['js/src-project/*.js'],
dest: 'js/project.js'
}
},
connect: {
html: {
options: {
base: '',
keepalive: 'true',
hostname: '0.0.0.0',
port: '9999'
}
}
},
cssmin: {
base: {
src: ['css/base.css'],
dest: 'css/base.min.css'
},
project: {
src: ['css/project.css'],
dest: 'css/project.min.css'
}
},
postcss: {
options: {
map: false,
processors: [
require('autoprefixer-core') ({
browsers: 'last 4 version'
})
]
},
base: {
src: 'css/base.css'
},
project: {
src: 'css/project.css'
}
},
sass: {
base: {
files: [{
cwd: 'sass/',
dest: 'css/',
expand: true,
ext: '.css',
src: ['*.scss', '!project.scss']
}],
options: {
sourcemap: 'none',
style: 'expanded'
}
},
project: {
files: {
'css/project.css': 'sass/project.scss',
},
options: {
sourcemap: 'none',
style: 'expanded'
}
}
},
uglify: {
base: {
files: {
'js/base.min.js': ['js/base.js']
}
},
project: {
files: {
'js/project.min.js': ['js/project.js']
}
}
},
watch: {
base: {
files: ['js/src/*.js', 'sass/**/*.scss', '!sass/project.scss'],
tasks: ['concat:base', 'uglify:base', 'sass:base', 'postcss:base', 'cssmin:base']
},
basecss: {
files: ['sass/**/*.scss', '!sass/project.scss'],
tasks: ['sass:base', 'postcss:base', 'cssmin:base']
},
basejs: {
files: ['js/src/*.js'],
tasks: ['concat:base', 'uglify:base']
},
project: {
files: ['js/src-project/*.js', 'sass/project.scss'],
tasks: ['concat:project', 'uglify:project', 'sass:project', 'postcss:project', 'cssmin:project']
},
projectcss: {
files: ['sass/project.scss'],
tasks: ['sass:project', 'postcss:project', 'cssmin:project']
},
projectjs: {
files: ['js/src-project/*.js'],
tasks: ['concat:project', 'uglify:project']
}
},
// dev update
devUpdate: {
main: {
options: {
semver: false,
updateType: 'prompt'
}
}
}
});
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。