@leax/cli-server
v2.2.0
Published
cli-server for @leax/cli
Downloads
8
Maintainers
Readme
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',
},
}
...