Sha256: c46c5fe1423dfaaf3d0e4e7beff34b326c1183224210f6ba2db7557a91d4d52a

Contents?: true

Size: 706 Bytes

Versions: 1

Compression:

Stored size: 706 Bytes

Contents

var path = require('path');

module.exports = {
  entry: './src/index.js',
  module: {
    rules: [
      { test: /\.js$/, exclude: /node_modules/, loader: "babel-loader" },
      { test: /\.coffee$/,
        use: [
          { loader: 'coffee-loader',
            options: {
              transpile: {
                presets: ['env']
              }
            }
          }
        ]
      }
    ]
  },
  output: {
    path: path.resolve(__dirname, 'dist'),
    filename: 'loco.js',
    library: 'App',
    libraryTarget: 'umd'
  },
  externals: {
    'loco-js-model': {
      commonjs: 'loco-js-model',
      commonjs2: 'loco-js-model',
      amd: 'loco-js-model',
      root: 'LocoModel'
    }
  }
};

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
loco-rails-3.0.0 test/dummy/node_modules/loco-js/webpack.config.js