You've already forked nginx-proxy-manager
mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-07 14:02:55 +03:00
Initial commit
This commit is contained in:
52
manager/webpack.config.js
Normal file
52
manager/webpack.config.js
Normal file
@@ -0,0 +1,52 @@
|
||||
const webpack = require('webpack');
|
||||
const Visualizer = require('webpack-visualizer-plugin');
|
||||
|
||||
module.exports = {
|
||||
context: __dirname + '/src/frontend/js',
|
||||
entry: './main.js',
|
||||
output: {
|
||||
filename: 'main.js',
|
||||
path: __dirname + '/dist/js',
|
||||
publicPath: '/js/',
|
||||
sourceMapFilename: 'dnBOUAwY76qx3MmZxtHn.map'
|
||||
},
|
||||
module: {
|
||||
loaders: [
|
||||
{
|
||||
test: /\.js$/,
|
||||
exclude: /(node_modules|bower_components)/,
|
||||
loader: 'babel-loader',
|
||||
query: {
|
||||
presets: ['@babel/es2015']
|
||||
}
|
||||
},
|
||||
{
|
||||
test: /\.ejs$/,
|
||||
loader: 'ejs-loader'
|
||||
}
|
||||
]
|
||||
},
|
||||
plugins: [
|
||||
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
|
||||
new webpack.optimize.LimitChunkCountPlugin({
|
||||
maxChunks: 1
|
||||
}),
|
||||
new webpack.ProvidePlugin({
|
||||
$: 'jquery',
|
||||
jQuery: 'jquery',
|
||||
_: 'underscore'
|
||||
}),
|
||||
new Visualizer({
|
||||
filename: '../../webpack_stats.html'
|
||||
}),
|
||||
new webpack.optimize.UglifyJsPlugin({
|
||||
compress: {
|
||||
unsafe: true,
|
||||
drop_console: false,
|
||||
drop_debugger: true,
|
||||
screw_ie8: true,
|
||||
warnings: false
|
||||
}
|
||||
})
|
||||
]
|
||||
};
|
Reference in New Issue
Block a user