mirror of
https://github.com/locomotivemtl/locomotive-boilerplate.git
synced 2026-01-15 00:55:08 +08:00
The plugin replaces the custom 'loadConfig()' function with a more robust and extensible solution. It handles 'grunt.initConfig()' and 'load-grunt-tasks'. Changes: - Moved Grunt task configurations into a 'config/' sub-directory to allow room for custom plugins, modules, and tasks to be defined without being included by the config-loader; - Updated '.eslintrc' to better lint module-based JS; - Updated EditorConfig recommendations;
23 lines
481 B
JavaScript
23 lines
481 B
JavaScript
module.exports = {
|
|
options: {
|
|
plugins: [
|
|
{ removeViewBox: false },
|
|
{ cleanupIDs: false },
|
|
{ convertPathData: false },
|
|
{ mergePaths: false },
|
|
{ convertShapeToPath: false },
|
|
{ cleanupNumericValues: false },
|
|
{ convertTransform: false },
|
|
{ removeUselessStrokeAndFill: false },
|
|
{ removeTitle: true },
|
|
{ removeDesc: true }
|
|
]
|
|
},
|
|
dist: {
|
|
expand : true,
|
|
cwd : '<%= paths.img.dist %>',
|
|
src : '*.svg',
|
|
dest : '<%= paths.img.dist %>'
|
|
}
|
|
};
|