-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from spryker-shop/master-merge-suite-167
Master merge suite 167
- Loading branch information
Showing
16 changed files
with
459 additions
and
285 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,11 @@ | ||
// require suite-frontend-builder | ||
const builder = require('@spryker/suite-frontend-builder'); | ||
// get the webpack compiler | ||
const compiler = require('./libs/compiler'); | ||
|
||
// require project settings | ||
const settings = require('./settings'); | ||
|
||
// get the mode arg from `npm run xxx` script | ||
// defined in package.json | ||
// get the mode arg from `npm run xxx` script defined in package.json | ||
const [mode] = process.argv.slice(2); | ||
|
||
// register custom development configuration factory | ||
require('./config/development'); | ||
// get the webpack configuration associated with the provided mode | ||
const config = require(`./configs/${mode}`); | ||
|
||
// build the project using the configuration factory | ||
// associated with the provided mode | ||
builder.build(settings, mode); | ||
// build the project | ||
compiler.compile(config); |
Oops, something went wrong.