UNPKG

simplepictureuploader

Version:

Simple Picture Uploader for Vue with scaling, framing

53 lines (51 loc) 1.09 kB
const webpack = require('webpack'); const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); module.exports = { devServer: { contentBase: path.resolve(__dirname, '../dist'), compress: true, port: 8080, historyApiFallback: true, inline: true, clientLogLevel: 'info' }, context: path.resolve(__dirname, '../examples'), entry: './main.js', output: { path: path.resolve(__dirname, '../dist'), filename: 'bundle.js', publicPath: '/', }, resolve: { alias: { 'vue$': 'vue/dist/vue.esm.js' }, extensions: ['*', '.js', '.vue', '.json'] }, module: { loaders: [ { test: /\.js$/, loader: 'babel-loader', include: __dirname, exclude: /node_modules/, }, { test: /\.vue$/, loader: 'vue-loader', }, { test: /\.css$/, loader: 'style!less!css', }, ], }, plugins: [ new HtmlWebpackPlugin({ filename: 'index.html', template: 'index.html', inject: true }), ], };