mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
add oh-my-cdn & vendor script
This commit is contained in:
24
gruntfile.js
24
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'
|
||||
|
||||
Reference in New Issue
Block a user