kk-egret
v1.2.2
Published
当前egret版本5.0.15
Downloads
2
Readme
kk-ws
当前egret版本5.0.15
使用方式
{
"compilerOptions": {
"module": "commonjs",
"noImplicitAny": false,
"removeComments": true,
"preserveConstEnums": true,
"sourceMap": true,
"target": "es2015",
"types": ["node_modules/kk-egret/lib/5.0.15/**/*.d.ts"]
}
}
const CopyWebpackPlugin = require('copy-webpack-plugin')
const path = require('path')
module.exports = {
mode: "development",
devtool: "inline-source-map",
entry: "./Main.ts",
output: {
filename: "bundle.js"
},
resolve: {
// Add `.ts` and `.tsx` as a resolvable extension.
extensions: [".ts", ".tsx", ".js"]
},
module: {
rules: [
// all files with a `.ts` or `.tsx` extension will be handled by `ts-loader`
{
test: /\.ts?$/,
loader: "ts-loader",
options: {
configFile: path.resolve(__dirname, ".", "tsconfig.json")
}
}
]
},
plugins:[
new CopyWebpackPlugin([{
from:"node_modules/kk-egret/lib/egret/5.0.15/**/*.min.js",
to:"../server/public/web/1.0.2/[name].js"
}])
]
};