feat: add themes source (#1089)
This commit is contained in:
@@ -1,31 +0,0 @@
|
||||
module.exports = function(grunt) {
|
||||
|
||||
grunt.initConfig({
|
||||
watch: {
|
||||
css: {
|
||||
files: ['src/**/*.scss'],
|
||||
tasks: ['sass'],
|
||||
options: {
|
||||
spawn: false,
|
||||
},
|
||||
}
|
||||
},
|
||||
|
||||
sass: {
|
||||
dist: {
|
||||
options: {
|
||||
style: 'expanded'
|
||||
},
|
||||
files: {
|
||||
'dist/dist.css': 'src/main.scss'
|
||||
}
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
grunt.loadNpmTasks('grunt-newer');
|
||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||
grunt.loadNpmTasks('grunt-contrib-sass');
|
||||
|
||||
grunt.registerTask('default', ['sass']);
|
||||
};
|
||||
@@ -3,17 +3,10 @@
|
||||
"version": "1.0.4",
|
||||
"main": "dist/dist.css",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "yarn run grunt",
|
||||
"prepublishOnly": "yarn run build"
|
||||
},
|
||||
"sn": {
|
||||
"main": "dist/dist.css"
|
||||
},
|
||||
"devDependencies": {
|
||||
"grunt": "^1.0.1",
|
||||
"grunt-contrib-sass": "^1.0.0",
|
||||
"grunt-contrib-watch": "^1.0.0",
|
||||
"grunt-newer": "^1.2.0"
|
||||
"scripts": {
|
||||
"build": "webpack --entry ./src/main.scss --config ./../../theme.webpack.config.js"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user