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.
31 lines
666 B
JavaScript
31 lines
666 B
JavaScript
"use strict";
|
|
|
|
// FIXME: Use this in dev only, have a prod compile/build step
|
|
require("@babel/register");
|
|
|
|
const budoExpress = require("budo-express");
|
|
const path = require("path");
|
|
|
|
budoExpress({
|
|
port: 8000,
|
|
sourceMaps: true,
|
|
expressApp: require("../src/app")(),
|
|
basePath: path.resolve(__dirname, ".."),
|
|
entryFiles: "src/client/index.jsx",
|
|
staticPath: "public",
|
|
bundlePath: "js/bundle.js",
|
|
livereloadPattern: "**/*.{css,html}",
|
|
browserify: {
|
|
extensions: [".jsx"],
|
|
plugin: [
|
|
"browserify-hmr"
|
|
],
|
|
transform: [
|
|
["babelify", {
|
|
presets: ["@babel/preset-env", "@babel/preset-react"],
|
|
// plugins: ["react-hot-loader/babel"]
|
|
}]
|
|
]
|
|
},
|
|
});
|