April 2017
Intermediate to advanced
454 pages
12h 51m
English
The vue-share-components is simpler than the official template, so it's a good way to learn by examining it.
The first thing we can take a look at is the package.json file. The following lines are relevant:
..."main": "dist/joke-button.common.js","unpkg": "dist/joke-button.browser.js","module": "index.js","scripts": { "dev": "cross-env NODE_ENV=development webpack --config config/webpack.config.dev.js --progress --watch", "build": "npm run build:browser && npm run build:common", "build:browser": "cross-env NODE_ENV=production webpack --config config/webpack.config.browser.js --progress --hide-modules", "build:common": "cross-env NODE_ENV=production webpack --config config/webpack.config.common.js --progress --hide-modules", ...Read now
Unlock full access