Skip to content

Commit

Permalink
updating scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
iruzevic committed Apr 28, 2020
1 parent b1b1efa commit f505d55
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
"start": "webpack --progress --watch --display-error-details --display-reasons --mode development",
"build": "webpack --progress --mode production",
"blocksExample": "cp -R ./node_modules/@eightshift/frontend-libs/blocks/init/src/blocks/custom/example ./src/blocks/custom/ && composer dump-autoload",
"storybookBuild": "build-storybook -c .storybook -o storybook",
"storybook": "start-storybook -s .storybook"
"storybookBuild": "build-storybook -s public -o storybook",
"storybook": "start-storybook -s public"
},
"devDependencies": {
"husky": "^3.0.9",
Expand Down
10 changes: 3 additions & 7 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This is a main entrypoint for Webpack config.
* All the settings are pulled from node_modules/@eightshift/frontend-libs/webpack.
* We are loading mostly used configuration but you can always override or turn off the default setup and provide your own.
* Please refere to Eigthshift-libs wiki for details.
* Please referer to Eightshift-libs wiki for details.
*
* @since 4.0.0 Moved to eightshift-libs.
* @since 1.0.0
Expand All @@ -14,15 +14,11 @@ module.exports = (env, argv) => {
const projectConfig = {
config: {
projectDir: __dirname, // Current project directory absolute path.
projectUrl: 'dev.boilerplate.com', // Used for providing browsersync functionality.
projectUrl: 'dev.eightshift-internal.com', // Used for providing browsersync functionality.
projectPath: 'wp-content/themes/eightshift-boilerplate', // Project path relative to project root.
},
};

// Generate webpack config for this project using options object.
const project = require('./node_modules/@eightshift/frontend-libs/webpack')(argv.mode, projectConfig);

return {
...project,
};
return require('./node_modules/@eightshift/frontend-libs/webpack')(argv.mode, projectConfig);
};

0 comments on commit f505d55

Please sign in to comment.