12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- 'use strict'
- const webpack = require('webpack')
- const merge = require('webpack-merge')
- const baseConfig = require('./webpack.config.base')
- const PORT = 8988
- module.exports = merge(baseConfig, {
- mode: 'development',
- devServer: {
- clientLogLevel: 'warning',
- historyApiFallback: {
- rewrites: [
- { from: /.*/, to: '/index.html' },
- ],
- },
- hot: true,
- contentBase: 'dist',
- compress: true,
- // host: 'dev.gdp.fr',
- host: '0.0.0.0',
- port: PORT,
- disableHostCheck: true,
- // open: "firefox-developer-edition",
- overlay: { warnings: false, errors: true },
- publicPath: '/',
- quiet: true,
- },
- module: {
- rules: [
- {
- test: /\.css$/,
- use: [
- 'vue-style-loader',
- 'css-loader'
- ]
- }, {
- test: /\.scss$/,
- use: [
- 'vue-style-loader',
- 'css-loader',
- 'sass-loader'
- ]
- }
- ]
- },
- plugins: [
- new webpack.HotModuleReplacementPlugin()
- ]
- })
|