First commit
This commit is contained in:
22
hGameTest/webpack.common.js
Normal file
22
hGameTest/webpack.common.js
Normal file
@@ -0,0 +1,22 @@
|
||||
const path = require ('path');
|
||||
|
||||
module.exports = {
|
||||
entry: "./build.hxml",
|
||||
output: {
|
||||
path: path.resolve (__dirname, "dist"),
|
||||
filename: "app.js"
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
"openfl": path.resolve (__dirname, "node_modules/openfl/lib/openfl")
|
||||
}
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.hxml$/,
|
||||
loader: 'haxe-loader',
|
||||
}
|
||||
]
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user