output path moved to webpack config

This commit is contained in:
svetlagasheva 2020-01-23 16:09:43 +02:00
parent fdfdf056c8
commit f47ccfdc83
2 changed files with 4 additions and 1 deletions

View file

@ -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"

View file

@ -8,6 +8,9 @@ const TerserPlugin = require('terser-webpack-plugin');
module.exports = {
entry: './src/index.js',
output: {
path: path.join(__dirname, 'build')
},
module: {
rules: [
{