1.1.11 • Published 4 years ago
eslink-cli v1.1.11
eslink-cli
快速上手
下载
npm i eslink-cli -g
初始化项目
mkdir hello-world && cd hello-world && eslink init
开发环境服务
eslink start vue
eslink start react
打包
eslink build prod vue // 生产环境
eslink build test vue // 测试环境
eslink build prod react // 测试环境
eslink build test react // 测试环境
配置
~root/eslink.config.js
{
alias: {},
webpackPlugin: [],
rules: [],
entry: path.join(process.cwd(), './src/index.js'),
postCssPlugins: [
require(`${node_modules}/autoprefixer`)({overrideBrowserslist: ['last 5 versions']}),
require(`${node_modules}/cssnano`)()
],
babelPresets: babel.presets,
babelPlugins: babel.plugins,
modifyVars: {},
host,
port: 3000,
jsx: false,
proxy: {},
dev: {
filename: `${pkg.version}/js/[name].js?v=[hash:7]`,
path: path.join(process.cwd(), `./dist/${pkg.name}/test`),
template: path.resolve(__dirname, '../../../index-dev.html'),
publicPath: undefined,
chunkFilename: undefined,
},
prod: {
filename: `${pkg.version}/js/[name].js?v=[hash:7]`,
path: path.join(process.cwd(), `./dist/${pkg.name}/prod`),
template: path.resolve(__dirname, '../../../index-prod.html'),
publicPath: './',
chunkFilename: `${pkg.version}/js/[name].js?[hash:7]`,
},
test: {
filename: `${pkg.version}/js/[name].js?v=[hash:7]`,
path: path.join(process.cwd(), `./dist/${pkg.name}/test`),
template: path.resolve(__dirname, '../../../index-test.html'),
publicPath: undefined,
chunkFilename: `${pkg.version}/js/[name].js?[hash:7]`,
}
}
1.1.11
4 years ago
1.1.10
4 years ago
1.1.9
4 years ago
1.1.8
4 years ago
1.1.7
4 years ago
1.1.6
4 years ago
1.1.5
4 years ago
1.1.4
4 years ago
1.1.3
4 years ago
1.1.2
4 years ago
1.1.1
4 years ago
1.1.0
4 years ago
1.0.13
4 years ago
1.0.12
4 years ago
1.0.11
4 years ago
1.0.10
4 years ago
1.0.9
4 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago