Commit 23a2a747 authored by Jinqn's avatar Jinqn

修改grunt

parent 51bdc33c
......@@ -21,6 +21,7 @@ module.exports = function ( grunt ) {
' * ====================================================\n' +
' */\n\n',
buildPath = 'import.js',
srcPath = 'src/',
distPath = 'dist/';
var getPath = function ( readFile ) {
......@@ -30,7 +31,7 @@ module.exports = function ( grunt ) {
sources = sources[ 1 ].replace( /\/\/.*\n/g, '\n' ).replace( /'|"|\n|\t|\s/g, '' );
sources = sources.split( "," );
sources.forEach( function ( filepath, index ) {
sources[ index ] = filepath;
sources[ index ] = srcPath + filepath;
} );
return sources;
......@@ -63,7 +64,8 @@ module.exports = function ( grunt ) {
},
files: ( function () {
var files = {};
files[ distPath + 'kityminder.all.js' ] = distPath + 'kityminder.all.min.js';
files[ distPath + 'kityminder.all.min.js' ] = distPath + 'kityminder.all.js';
console.log(files);
return files;
} )()
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment