...
 
Commits (3)
......@@ -8,7 +8,8 @@
"scripts": {
"build": "webpack",
"build:prod": "webpack -p",
"dev": "webpack -w",
"watch": "webpack -w",
"dev": "webpack-dev-server",
"lint": "eslint './src/**'"
},
"dependencies": {
......@@ -32,7 +33,8 @@
"semantic-ui-less": "^2.4.1",
"semantic-ui-react": "^0.84.0",
"url-search-params": "^1.1.0",
"uuid": "^3.3.2"
"uuid": "^3.3.2",
"webpack-dev-server": "^3.9.0"
},
"devDependencies": {
"babel-core": "^6.26.3",
......
......@@ -3,14 +3,14 @@ require("dotenv").config();
const webpack = require("webpack");
const merge = require("webpack-merge");
const path = require("path");
const CopyWebpackPlugin = require('copy-webpack-plugin');
const CopyWebpackPlugin = require("copy-webpack-plugin");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const SWPrecacheWebpackPlugin = require("sw-precache-webpack-plugin");
const ManifestPlugin = require("webpack-manifest-plugin");
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CleanWebpackPlugin = require('clean-webpack-plugin');
const HardSourceWebpackPlugin = require('hard-source-webpack-plugin');
const HtmlWebpackPlugin = require("html-webpack-plugin");
const CleanWebpackPlugin = require("clean-webpack-plugin");
const HardSourceWebpackPlugin = require("hard-source-webpack-plugin");
const BUILD_DIR = path.resolve("./dist");
const APP_DIR = path.resolve("src");
......@@ -113,9 +113,16 @@ const common = {
path.resolve("node_modules")
],
alias: {
'../../theme.config$': path.join(__dirname, "themes/theme.config")
"../../theme.config$": path.join(__dirname, "themes/theme.config")
},
},
devServer: {
contentBase: path.join(__dirname, "dist"),
compress: true,
open: false,
historyApiFallback: true,
port: process.env.PORT || 8000
}
};
......
This diff is collapsed.