Commit 5a56c677 authored by Allen Bai's avatar Allen Bai

feat: 添加模块引入方式

parent 5517dd9b
/** @format */
import IPCHelper from '../../../dist/IPCHelper.module'
IPCHelper.mountIPCFooter()
/** @format */
const path = require('path')
module.exports = {
mode: 'development',
entry: './src/index.js',
output: {
filename: 'main.[contenthash].js',
path: './dist/'
},
module: {
rules: []
}
}
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -11,7 +11,8 @@ ...@@ -11,7 +11,8 @@
"build": "npm run clean && cross-env NODE_ENV=prod && rollup -c", "build": "npm run clean && cross-env NODE_ENV=prod && rollup -c",
"build:debug": "npm run clean && cross-env NODE_ENV=dev rollup -c", "build:debug": "npm run clean && cross-env NODE_ENV=dev rollup -c",
"clean": "rm -rf ./dist", "clean": "rm -rf ./dist",
"test:in_html": "npm run watch & concurrently \"http-server -a localhost -p 1234\" \"open http://localhost:1234/example/inHTML/index.html\"" "test:in_html": "npm run watch & concurrently \"http-server -a localhost -p 1234\" \"open http://localhost:1234/example/inHTML/index.html\"",
"test:in_module": "webpack -s"
}, },
"typescript": ">=4.0", "typescript": ">=4.0",
"files": [ "files": [
...@@ -36,6 +37,7 @@ ...@@ -36,6 +37,7 @@
"eslint": "^7.15.0", "eslint": "^7.15.0",
"eslint-config-prettier": "^7.0.0", "eslint-config-prettier": "^7.0.0",
"eslint-plugin-prettier": "^3.2.0", "eslint-plugin-prettier": "^3.2.0",
"html-webpack-plugin": "^4.5.1",
"http-server": "^0.12.3", "http-server": "^0.12.3",
"husky": "^4.3.4", "husky": "^4.3.4",
"lint-staged": "^10.5.3", "lint-staged": "^10.5.3",
...@@ -48,7 +50,10 @@ ...@@ -48,7 +50,10 @@
"standard-version": "^9.0.0", "standard-version": "^9.0.0",
"tslib": "^2.0.3", "tslib": "^2.0.3",
"tuia-auto-upload": "^2.0.19", "tuia-auto-upload": "^2.0.19",
"typescript": "^4.1.2" "typescript": "^4.1.2",
"webpack": "^5.18.0",
"webpack-cli": "^4.4.0",
"webpack-dev-server": "^3.11.2"
}, },
"husky": { "husky": {
"hooks": { "hooks": {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment