[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'); const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = { module.exports = {
entry: './src/index.js', entry: './src/index.jsx',
output: { output: {
path: path.resolve(__dirname, 'dist'), path: path.resolve(__dirname, 'dist'),
filename: 'bundle.js', filename: 'bundle.js',

View File

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

View File

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

View File

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