|
- var webpack = require('webpack');
-
- module.exports = {
- context: __dirname + "/app",
- entry: "./main.js",
- output: {
- path: __dirname + "/dist",
- publicPath: '/dist/',
- filename: "bundle.js"
- },
-
- module: {
- loaders: [
- //{test: /\.js$/, loader: 'babel-loader', query: {presets: ['es2015']}},
-
- {
- test: /\.js$/,
- exclude: /node_modules|vue\/dist|vue-router\/|vue-loader\/|vue-hot-reload-api\//,
- loader: 'babel'
- },
- {test: /\.css$/, loader: 'style-loader!css-loader'},
- {test: /\.(png|jpg)$/, loader: 'url-loader?limit=8192'},
- {test: /\.vue$/, loader: 'vue'},
- { test: /\.woff(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=application/font-woff"},
- { test: /\.woff2(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=application/font-woff"},
- { test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=application/octet-stream"},
- {test: /\.eot(\?v=\d+\.\d+\.\d+)?$/, loader: "file"},
- { test: /\.svg(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=image/svg+xml"}
- ]
- },
- plugins: [
- new webpack.ProvidePlugin({
- $: "jquery",
- jQuery: "jquery",
- "window.jQuery": "jquery"
- })
- ]
- };
|