1.0.39 • Published 3 years ago

@reactorone/bundler v1.0.39

Weekly downloads
1
License
ISC
Repository
bitbucket
Last release
3 years ago

Reactorone - Bundler

NPM: npm install @reactorone/bundler @reactorone/common-static --save

As shown above, @reactorone/common-static is a peer dependency - the bundler will not run properly if you don't install this alongside bundler.

Description

Bundles reactorone common static assets with store specific assets. After installing this plugin the bundler will try and automatically create a NPM 'build' script for you to use. You can run this with:

npm run ro-bundler

You should make sure your main and style attributes are set within package.json; this will be your entry point for javascript and css bundles. Example:

{
    "main": "src/js/index.js",
    "style": "src/scss/index.scss"
}

Options

jsEntryPoint Reconfigure the js entry point

cssEntryPoint Reconfigure the css entry point

watchFolders Allows you to watch additional paths outside the bundlers context.

Example: npm run ro-bundler -- --watchFolders=~@reactorone/common-static In this scenario we would also watch @reactorone/common-static for an additional changes to automatically rebuild when necessary.

Note: ~ is shorthand for node_modules

watch Watches scss and js files for any changes to rebuild bundles.

reload Live reload; as files change, automatically reload browser for js/css.

static Used to define an extra path for your bundled assets to go; this is by default set to /reactorone/static/<client-name>.

extraPath Override default path for bundled assets.

prod Production-build, compressed, minified.

split Split css bundle into multiple smaller bundles for compatibility with older browsers.

Example usage: npm run ro-bundler -- --watch --reload --static

Note that the initial -- is required to separate the npm script arguments.

1.0.39

3 years ago

1.0.38

3 years ago

1.0.37

4 years ago

1.0.36

5 years ago

1.0.35

5 years ago

1.0.34

5 years ago

1.0.33

5 years ago

1.0.32

5 years ago

1.0.31

5 years ago

1.0.30

5 years ago

1.0.29

5 years ago

1.0.28

5 years ago

1.0.27

5 years ago

1.0.26

5 years ago

1.0.25

5 years ago

1.0.24

5 years ago

1.0.23

6 years ago

1.0.22

6 years ago

1.0.21

6 years ago

1.0.20

6 years ago

1.0.19

6 years ago

1.0.18

6 years ago

1.0.17

6 years ago

1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago