mirror of
https://github.com/bendtherules/github-delete-unused-repos.git
synced 2026-08-18 13:52:59 +00:00
Initial commit
Contains basic working logic to find unused repos and show in console
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
const webpack = require("webpack");
|
||||
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||
|
||||
module.exports = {
|
||||
devtool: 'inline-source-map',
|
||||
entry: {
|
||||
"index": './src/index.ts',
|
||||
"index.min": './src/index.ts',
|
||||
},
|
||||
output: {
|
||||
filename: 'dist/[name].js'
|
||||
},
|
||||
resolve: {
|
||||
// Add `.ts` and `.tsx` as a resolvable extension.
|
||||
extensions: ['.ts', '.tsx', '.js']
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{ test: /\.js$/, loader: 'babel-loader' },
|
||||
// all files with a `.ts` or `.tsx` extension will be handled by `ts-loader`
|
||||
{ test: /\.tsx?$/, loader: 'babel-loader!ts-loader' }
|
||||
]
|
||||
},
|
||||
plugins: [
|
||||
new webpack.optimize.UglifyJsPlugin({
|
||||
include: /\.min\.js$/,
|
||||
minimize: true
|
||||
}) ,
|
||||
new CopyWebpackPlugin([
|
||||
{ from: 'demo/index.html', to: 'dist/' }
|
||||
])
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user