2018-02-16 19:55:52 +03:00
|
|
|
const path = require("path");
|
2018-02-13 03:11:21 +03:00
|
|
|
|
|
|
|
module.exports = {
|
2018-02-16 19:55:52 +03:00
|
|
|
entry: ["babel-polyfill", "./src/Temp.js"],
|
2018-02-13 03:11:21 +03:00
|
|
|
output: {
|
2018-02-16 19:55:52 +03:00
|
|
|
filename: "xr-input.js",
|
|
|
|
path: path.resolve(__dirname, "dist")
|
2018-02-13 03:11:21 +03:00
|
|
|
},
|
2018-02-16 19:55:52 +03:00
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.js$/,
|
|
|
|
include: [path.resolve(__dirname)],
|
|
|
|
use: {
|
|
|
|
loader: "babel-loader",
|
|
|
|
options: {
|
|
|
|
presets: ["env"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2018-02-13 03:11:21 +03:00
|
|
|
},
|
|
|
|
resolve: {
|
2018-02-16 19:55:52 +03:00
|
|
|
extensions: [".js"]
|
|
|
|
}
|
2018-02-13 03:11:21 +03:00
|
|
|
};
|