[create-inula]<feat> 新增响应式 API 模板

This commit is contained in:
13659257719 2023-12-01 14:40:05 +08:00
parent cfd55220f8
commit 45ebc9b97d
9 changed files with 5 additions and 5 deletions

View File

@ -17,7 +17,7 @@ const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: './src/index.js',
entry: './src/index.jsx',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'bundle.js',

View File

@ -17,7 +17,7 @@ const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: './src/index.js',
entry: './src/index.jsx',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'bundle.js',

View File

@ -1,6 +1,6 @@
{
"name": "create-inula",
"version": "0.0.5",
"version": "0.0.6",
"description": "",
"main": "index.js",
"bin": {

View File

@ -93,8 +93,8 @@ function genConfig(mode) {
mode === 'production' && terser(),
copy([
{
from: path.join(libDir, '/npm/index.js'),
to: path.join(outDir, 'index.js'),
from: path.join(libDir, '/npm/index.jsx'),
to: path.join(outDir, 'index.jsx'),
}
]),
],