[create-inula]<feat> 新增响应式 API 模板
This commit is contained in:
parent
cfd55220f8
commit
45ebc9b97d
|
@ -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',
|
||||||
|
|
|
@ -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',
|
||||||
|
|
|
@ -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": {
|
||||||
|
|
|
@ -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'),
|
||||||
}
|
}
|
||||||
]),
|
]),
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue