123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- 'use strict'
- const webpack = require('webpack')
- const merge = require('webpack-merge')
- const baseConfig = require('./webpack.config.base')
- const HOST = 'localhost'
- const PORT = 8080
- module.exports = merge(baseConfig, {
- mode: 'development',
- devServer: {
- clientLogLevel: 'warning',
- hot: true,
- contentBase: 'dist',
- compress: true,
- host: HOST,
- port: PORT,
- // open: "firefox-developer-edition",
- overlay: { warnings: false, errors: true },
- publicPath: '/',
- quiet: true
- },
- module: {
- rules: [
- {
- test: /\.css$/,
- use: [
- 'vue-style-loader',
- 'css-loader'
- ]
- }, {
- test: /\.styl(us)?$/,
- use: [
- 'vue-style-loader',
- 'css-loader',
- 'stylus-loader'
- ]
- }
- ]
- },
- plugins: [
- new webpack.HotModuleReplacementPlugin()
- ]
- })
|