npm install
npm run build
To separate the bundle files for each html, create separate files in src/entry. When you use the bundle files, they will be loaded separately in the html side.
npm run watch
dist
dist
In this repository, docs.
src/entries
build target
src/components
components for alpine
src/stores
store for alpine
dist/js
npx webpack-cli init
npm install alpinejs
npm install axios
npm install lodash
npm install dayjs
npm install dotenv-webpack
.babelrc
{
"plugins": ["@babel/syntax-dynamic-import"],
"presets": [
[
"@babel/preset-env",
{
"modules": false,
"targets": {
// for "regeneratorRuntime is not defined"
"esmodules": true
}
}
]
]
}