2017-04-07 04:52:15 +03:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2017-present, Facebook, Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* This source code is licensed under the BSD-style license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
|
|
*/
|
|
|
|
|
|
|
|
const path = require('path');
|
|
|
|
const webpack = require('webpack');
|
|
|
|
|
|
|
|
const WebpackConfig = {
|
2017-04-27 10:30:00 +03:00
|
|
|
entry: "./",
|
2017-04-07 04:52:15 +03:00
|
|
|
output: {
|
|
|
|
path: path.join(__dirname),
|
|
|
|
filename: "prepack.min.js",
|
2017-04-27 10:30:00 +03:00
|
|
|
library: 'Prepack',
|
2017-04-07 04:52:15 +03:00
|
|
|
},
|
|
|
|
|
|
|
|
plugins: [
|
|
|
|
new webpack.optimize.UglifyJsPlugin({
|
|
|
|
sourceMap: false,
|
|
|
|
})
|
|
|
|
],
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = WebpackConfig;
|