Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct{}
Plugin takes care of webpack related operations that the CLI needs to take care. I contains methods to satisfy the needs of each of the commands that will call it.
func (Plugin) Build ¶
Build runs webpack build from the package.json scripts. if the project uses yarn will run `yarn run build`, if the project uses npm will run `npm run build`. otherwise will not run any of those.
[Important] it assumes: - that there is a build script in package.json. - that yarn or npm is installed in the system.
Click to show internal directories.
Click to hide internal directories.