- 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: "./source",
scss: "./source/scss",
js: "./source/js",
},
dest: {
base: "./assets",
css: "./assets/css",
js: "./assets/js",
}
}
...
}