mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
27 lines
481 B
JavaScript
27 lines
481 B
JavaScript
|
const path = require("path")
|
||
|
|
||
|
module.exports = {
|
||
|
entry: {
|
||
|
"activestorage": path.resolve(__dirname, "app/javascript/activestorage/index.js"),
|
||
|
},
|
||
|
|
||
|
output: {
|
||
|
filename: "[name].js",
|
||
|
path: path.resolve(__dirname, "app/assets/javascripts"),
|
||
|
library: "ActiveStorage",
|
||
|
libraryTarget: "umd"
|
||
|
},
|
||
|
|
||
|
module: {
|
||
|
rules: [
|
||
|
{
|
||
|
test: /\.js$/,
|
||
|
exclude: /node_modules/,
|
||
|
use: {
|
||
|
loader: "babel-loader"
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|