123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- const webpack = require('webpack');
- module.exports = {
- devtool: 'eval-source-map',
- entry: './main.js',
- output: {
- path: __dirname + '/build/',
- filename: 'bundle.js'
- },
- module: {
- preLoaders: [
- {
- test: /\.vue$/,
- loader: 'eslint',
- exclude: /node_modules/
- }
- ],
- loaders: [
- {
- test: /\.vue$/,
- loader: 'vue'
- },
- {
- test: /\.js$/,
- loader: 'babel',
- exclude: /node_modules/
- },
- {
- test: /\.scss$/,
- loader: 'css-loader!sass-loader'
- }
- ]
- },
- vue: {
- loaders: {
- sass: 'style!css!sass?indentedSyntax',
- scss: 'style!css!sass'
- }
- },
- babel: {
- presets: ['es2015'],
- plugins: ['transform-runtime'],
- comments: false
- }
- };
|