From ea8e31561ef2c46af50c30bf8ab34b36e6006d7a Mon Sep 17 00:00:00 2001 From: Rokt33r Date: Tue, 3 May 2016 15:37:50 +0900 Subject: [PATCH] add oh-my-cdn & vendor script --- gruntfile.js | 24 ------------------------ lib/main.html | 8 ++++---- oh-my-cdn.json | 9 +++++++++ package.json | 10 ++++------ 4 files changed, 17 insertions(+), 34 deletions(-) create mode 100644 oh-my-cdn.json diff --git a/gruntfile.js b/gruntfile.js index 5496c490..6637d3d8 100644 --- a/gruntfile.js +++ b/gruntfile.js @@ -61,30 +61,6 @@ module.exports = function (grunt) { grunt.loadNpmTasks('grunt-electron-installer-debian') } - grunt.registerTask('copy', function () { - var done = this.async() - var targetPaths = [ - 'node_modules/react/dist/react.min.js', - 'node_modules/react-dom/dist/react-dom.min.js', - 'node_modules/react-redux/dist/react-redux.min.js', - 'node_modules/redux/dist/redux.min.js' - ] - - var merged = merge() - targetPaths.forEach(function (targetPath) { - var read = fs - .createReadStream(path.resolve(__dirname, targetPath)) - var write = fs.createWriteStream(path.resolve(__dirname, 'compiled', path.basename(targetPath))) - read.pipe(write) - merged.add(read) - }) - - merged - .on('end', function () { - done() - }) - }) - grunt.registerTask('compile', function () { var done = this.async() var execPath = path.join('node_modules', '.bin', 'webpack') + ' --config webpack-production.config.js' diff --git a/lib/main.html b/lib/main.html index 49b390d4..834c295f 100644 --- a/lib/main.html +++ b/lib/main.html @@ -58,10 +58,10 @@ - - - - + + + +