UNPKG

687 BJavaScriptView Raw
1var webpack = require('webpack')
2
3module.exports = {
4 entry: ['./src/revue.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 '__DEV__': false
24 }),
25 new webpack.optimize.UglifyJsPlugin({
26 comments: false,
27 compressor: {
28 screw_ie8: true,
29 warnings: false
30 }
31 })
32 ]
33}