You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
667 B
JavaScript
32 lines
667 B
JavaScript
"use strict";
|
|
|
|
const budoExpress = require("budo-express");
|
|
const path = require("path");
|
|
|
|
budoExpress({
|
|
port: 3000,
|
|
debug: true,
|
|
expressApp: require("../src/server/app"),
|
|
basePath: path.join(__dirname, ".."),
|
|
entryPath: "src/client/index.jsx",
|
|
publicPath: "public",
|
|
bundlePath: "js/bundle.js",
|
|
livereload: "**/*.{css,html,js}",
|
|
browserify: {
|
|
extensions: [".jsx"],
|
|
plugin: [
|
|
"browserify-hmr"
|
|
],
|
|
transform: [
|
|
["babelify", {
|
|
presets: ["@babel/preset-env", "@babel/preset-react"],
|
|
// plugins: ["react-hot-loader/babel"]
|
|
}],
|
|
// ["aliasify", {
|
|
// aliases: {
|
|
// "react-dom": "@hot-loader/react-dom"
|
|
// }
|
|
// }]
|
|
]
|
|
}
|
|
}); |