From f47ccfdc83c14eac2853cd17348cc7123e3b2855 Mon Sep 17 00:00:00 2001 From: svetlagasheva Date: Thu, 23 Jan 2020 16:09:43 +0200 Subject: [PATCH] output path moved to webpack config --- package.json | 2 +- webpack.config.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index b4ddb06cf..53d6f78c6 100755 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "license": "GPLv3", "scripts": { "start": "webpack-dev-server --mode development", - "build": "webpack --mode production --output-path build", + "build": "webpack --mode production", "storybook": "start-storybook --ci --config-dir ./storybook --static-dir ./ --port 6060", "test": "jest", "lint": "eslint src" diff --git a/webpack.config.js b/webpack.config.js index 466f5cc30..a9c28c840 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -8,6 +8,9 @@ const TerserPlugin = require('terser-webpack-plugin'); module.exports = { entry: './src/index.js', + output: { + path: path.join(__dirname, 'build') + }, module: { rules: [ {