9330d01ada
git-subtree-dir: activestorage git-subtree-mainline: 0d58e7e478e79c2d6b2a39a4444d2a17a903b2a6 git-subtree-split: 3f4a7218a4a4923a0e7ce1b2eb0d2888ce30da58
28 lines
516 B
JavaScript
28 lines
516 B
JavaScript
const webpack = require("webpack")
|
|
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"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|