aboutsummaryrefslogblamecommitdiffstats
path: root/activestorage/webpack.config.js
blob: 3a50eef470cf7aa1e016e913e09e9f4d60a52106 (plain) (tree)

























                                                                                      
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"
        }
      }
    ]
  }
}