action-input/webpack.config.js

27 строки
484 B
JavaScript

const path = require("path");
module.exports = {
entry: ["babel-polyfill", "./src/action/ActionManager.js"],
output: {
filename: "xr-input.js",
path: path.resolve(__dirname, "dist")
},
module: {
rules: [
{
test: /\.js$/,
include: [path.resolve(__dirname)],
use: {
loader: "babel-loader",
options: {
presets: ["env"]
}
}
}
]
},
resolve: {
extensions: [".js"]
}
};