UNPKG

amazeui-vue

Version:

Amaze UI components built with vue.js

49 lines (41 loc) 848 B
var webpack = require('webpack'); var path = require('path'); module.exports = { entry: path.resolve(__dirname, '../src/standalone.js'), output: { path: path.resolve(__dirname, '../dist'), publicPath: "/", filename: "amazeui-vue.js" }, module: { loaders: [ { test: /\.vue$/, loader: 'vue' }, { test: /\.js$/, exclude: /node_modules/, loader: "babel", query: { presets: ['es2015'], plugins: ['transform-runtime'] } } ] }, vue: { loaders: { html: 'vue-html?removeRedundantAttributes=false' } }, plugins: [ new webpack.DefinePlugin({ 'process.env': { NODE_ENV: '"production"' } }), new webpack.optimize.UglifyJsPlugin({ compress: { warnings: false } }) ] };