| Server IP : 104.21.37.246 / Your IP : 172.71.28.146 [ Web Server : Apache System : Linux cpanel01wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.59.el6.x86_64 #1 SMP Thu Dec 6 05:11:00 EST 2018 x86_64 User : cp648411 ( 1354) PHP Version : 7.2.34 Disable Function : NONE Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/2388321/root/proc/2388322/cwd/unprotected/libraries/angular-ui-scroll/1.6.1/ |
Upload File : |
var path = require('path');
var webpack = require('webpack');
var packageJSON = require('./package.json');
var getBanner = function (compressed) {
return packageJSON.name + (compressed ? ' (compressed)' : ' (uncompressed)') + '\n' +
packageJSON.homepage + '\n' +
'Version: ' + packageJSON.version + ' -- ' + (new Date()).toISOString() + '\n' +
'License: ' + packageJSON.license;
};
module.exports.config = {
entry: {
'ui-scroll': './src/ui-scroll.js',
'ui-scroll-grid': './src/ui-scroll-grid.js'
},
output: {
path: path.join(__dirname, 'temp'),
filename: '[name].js'
},
cache: false,
devtool: 'source-map',
module: {
loaders: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader',
query: {
presets: ['es2015']
}
}
]
},
plugins: [
new webpack.BannerPlugin(getBanner(false))
]
};
module.exports.compressedPlugins = [
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: true,
},
output: {
comments: false,
},
}),
new webpack.BannerPlugin(getBanner(true))
];