mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-08 22:33:24 +00:00
@@ -1,22 +1,22 @@
|
||||
const path = require('path')
|
||||
const exec = require('child_process').exec
|
||||
const webpack = require('webpack')
|
||||
const HtmlWebpackPlugin = require('html-webpack-plugin')
|
||||
const ExtractTextPlugin = require('extract-text-webpack-plugin')
|
||||
const WebpackNotifierPlugin = require('webpack-notifier')
|
||||
const pkgJson = require('./package')
|
||||
|
||||
const path = require('path');
|
||||
const exec = require('child_process').exec;
|
||||
const webpack = require('webpack');
|
||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||
const ExtractTextPlugin = require('extract-text-webpack-plugin');
|
||||
const WebpackNotifierPlugin = require('webpack-notifier');
|
||||
const pkgJson = require('./package');
|
||||
const buildDate = new Date();
|
||||
function CopyDirPlugin(source, destination) {
|
||||
this.source = source
|
||||
this.destination = destination
|
||||
this.source = source;
|
||||
this.destination = destination;
|
||||
}
|
||||
|
||||
CopyDirPlugin.prototype.apply = function(compiler) {
|
||||
compiler.plugin('done', () => {
|
||||
console.log(compiler.outputPath, this.destination)
|
||||
exec('cp -r ' + this.source + ' ' + path.join(compiler.outputPath, this.destination))
|
||||
})
|
||||
}
|
||||
console.log(compiler.outputPath, this.destination);
|
||||
exec('cp -r ' + this.source + ' ' + path.join(compiler.outputPath, this.destination));
|
||||
});
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
devtool: 'source-map',
|
||||
@@ -46,6 +46,7 @@ module.exports = {
|
||||
inject: false,
|
||||
template: path.join(__dirname, 'src/index.ejs'),
|
||||
version: pkgJson.version,
|
||||
date: buildDate,
|
||||
gapiKey: process.env.CORIOLIS_GAPI_KEY || ''
|
||||
}),
|
||||
new ExtractTextPlugin({
|
||||
@@ -69,4 +70,4 @@ module.exports = {
|
||||
{ test: /\.svg(\?v=\d+\.\d+\.\d+)?$/, loader: 'url-loader?limit=10000&mimetype=image/svg+xml' }
|
||||
]
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user