Licence
MIT
Version
2.2.0
Deps
20
Size
36 kB
Vulns
6
Weekly
0
Used
npm install @leax/cli-server -D
// package.json
"scripts": {
"dev": "leax-server dev",
}
// leax.config.js
module.exports = {
entry: 'xxx',
output: {
path: './dist',
publicPath: '/',
filename: 'js/[name].[contenthash:6].js',
clean: true,
},
mode: process.env.NODE_ENV || 'development',
devServer: {
host: 'localhost',
static: 'dist',
port: 8000,
open: true,
hot: true,
},
extensions: ['.js', '.jsx', '.ts', '.tsx', '.scss', '.css'],
alias: {
'@': './src',
},
}
...