webssh2/webpack.common.js
billchurch 52f5ba1dad cleanup of public and supporting files
/public is now volatile, any changes to templates should be made in
/src and then run either “npm run build” or “npm run builder”
2018-02-06 12:11:39 -05:00

26 lines
592 B
JavaScript

const path = require('path')
const CleanWebpackPlugin = require('clean-webpack-plugin')
const CopyWebpackPlugin = require('copy-webpack-plugin')
module.exports = {
entry: {
webssh2: './src/js/index.js'
},
plugins: [
new CleanWebpackPlugin(['./public']),
new CopyWebpackPlugin([
'./src/client-full.htm',
'./src/client-min.htm',
'./src/favicon.ico'
])
],
output: {
filename: '[name].bundle.js',
path: path.resolve(__dirname, './public')
},
module: {
loaders: [
{ test: /\.css$/, loader: 'style-loader!css-loader' }
]
}
}