UNPKG

koot

Version:

Koot.js - React isomorphic framework created by CMUX

35 lines (30 loc) 911 B
const webpack = require('webpack') const common = require('../common') const factoryConfig = async ({ pathRun, // CLIENT_DEV_PORT, }) => { // let { RUN_PATH, CLIENT_DEV_PORT, APP_KEY } = opt return { mode: "development", target: 'async-node', node: { __dirname: true }, watch: false, output: { filename: 'index.js', chunkFilename: 'chunk.[name].[chunkhash].js', path: `${pathRun}/${common.outputPath}/server`, // publicPath: `/[need_set_in_app:__webpack_public_path__]/`, // publicPath: `/`, }, plugins: [ new webpack.DefinePlugin({ __SPA__: false, }), ], externals: common.filterExternalsModules(), } } module.exports = async (opt) => await factoryConfig(opt)