Skip to content

Commit 69b953f

Browse files
use absolute path for dist folder
1 parent f55a888 commit 69b953f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/leo-core/src/webpack.config.develop.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import AssetsPlugin from "assets-webpack-plugin";
88
import serialize from "serialize-javascript";
99

1010
export default ({ conf, data, urls }) => {
11+
const outputPath = conf.outputPath ? conf.outputPath : process.cwd() + '/dist';
1112
function getDefinePlugins() {
1213
const dPlugins = [
1314
/**
@@ -55,7 +56,7 @@ export default ({ conf, data, urls }) => {
5556
output: {
5657
// chunkhash can't be used in hmr
5758
filename: "js/[name]-[chunkhash].js",
58-
path: "dist",
59+
path: outputPath,
5960
libraryTarget: "commonjs2"
6061
},
6162
externals: [ /^graphql/ ],
@@ -131,7 +132,7 @@ export default ({ conf, data, urls }) => {
131132
output: {
132133
// chunkhash can't be used in hmr
133134
filename: "js/client.js",
134-
path: "dist"
135+
path: outputPath,
135136
},
136137
target: "web",
137138
resolve: { extensions: [ ".js", ".json", ".leorc" ] },

0 commit comments

Comments
 (0)