UNPKG

719 BJavaScriptView Raw
1var webpack = require('webpack')
2
3module.exports = {
4 entry: ['./revue.common.js'],
5 output: {
6 path: __dirname,
7 filename: 'revue.js',
8 libraryTarget: 'umd',
9 library: 'Revue'
10 },
11 resolve: {
12 extensions: ['', '.js']
13 },
14 module: {
15 loaders: [
16 { test: /\.js$/, loaders: ['babel'], exclude: [/node_modules/] }
17 ]
18 },
19 plugins: [
20 new webpack.optimize.OccurenceOrderPlugin(),
21 new webpack.DefinePlugin({
22 'process.env.NODE_ENV': JSON.stringify('production')
23 }),
24 new webpack.optimize.UglifyJsPlugin({
25 comments: false,
26 compressor: {
27 screw_ie8: true,
28 warnings: false
29 }
30 })
31 ],
32 babel: {
33 "presets": ["es2015", "stage-0"]
34 }
35}