kk-egret
TypeScript icon, indicating that this package has built-in type declarations

1.2.2 • Public • Published

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"
            }])
        ]
    };

Readme

Keywords

none

Package Sidebar

Install

npm i kk-egret

Weekly Downloads

8

Version

1.2.2

License

ISC

Unpacked Size

5.05 MB

Total Files

32

Last publish

Collaborators

  • com-melot-kk-web