Permalink
Browse files

Plugin-bundler-webpack: Make webpack follow configured outdir (#1202)

  • Loading branch information...
emilpalsson authored and MoOx committed Nov 14, 2017
1 parent edffcf2 commit 0e15e24121b2dc463437b0b9684d9264abd53bb9
Showing with 3 additions and 1 deletion.
  1. +3 −1 packages/plugin-bundler-webpack/src/webpack.config.js
@@ -15,7 +15,9 @@ module.exports = (config: PhenomicConfig) => ({
},
output: {
publicPath: "/", // @todo make this dynamic
path: path.join(process.cwd(), "dist"),
path: path.isAbsolute(config.outdir)
? config.outdir
: path.join(process.cwd(), config.outdir),
...(process.env.PHENOMIC_ENV !== "static"
? {
filename: "phenomic/[name].js",

0 comments on commit 0e15e24

Please sign in to comment.