- Install Dev Depedencies
node v16
yarn 1.22.17
- Install Dev Depedencies
npm install // or yarn install
- To start development and server for live preview
npm run dev // or yarn dev
- To generate minifed files for production server
npm run prod // or yarn prod
To change the path of files and destination/build folder, edit options in config.js file
{
config: {
...
port: 9050 // browser preview port
},
paths: {
root: ".",
src: {
base: "./assets/src",
scss: "./assets/src/scss",
js: "./assets/src/js",
img: "./assets/src/images",
fonts: "./assets/src/fonts",
},
dest: {
base: "./assets/dest",
css: "./assets/dest/css",
js: "./assets/dest/js",
img: "./assets/dest/images",
fonts: "./assets/dest/fonts",
}
}
...
}