Sha256: 63509d7e461f2a3d7be85eb3be168cd342809dc58f27cc204ac2db59a71f2be7

Contents?: true

Size: 1.11 KB

Versions: 14

Compression:

Stored size: 1.11 KB

Contents

module.exports = [{
  entry: './assets/scss/app.scss',
  output: {
    // This is necessary for webpack to compile
    // But we never use style-bundle.js
    filename: '../../public/style-bundle.js',
  },
  module: {
    rules: [{
      test: /\.scss$/,
      use: [
        {
          loader: 'file-loader',
          options: {
            name: '../../public/bundle.css',
          },
        },
        { loader: 'extract-loader' },
        { loader: 'css-loader' },
        { loader: 'sass-loader',
          options: {
            importer: function(url, prev) {
              if(url.indexOf('@material') === 0) {
                var filePath = url.split('@material')[1];
                var nodeModulePath = `./node_modules/@material/${filePath}`;
                return { file: require('path').resolve(nodeModulePath) };
              }
              return { file: url };
            }
          } }
      ]
    }]
  },
}];

module.exports.push({
  entry: ["./assets/js/app.js"],
  output: {
    filename: "../../public/bundle.js"
  },
  module: {
    loaders: [{
      test: /\.js$/,
      loader: 'babel-loader'
    }]
  },
});

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
voom-presenters-0.1.13 views/mdc/webpack.config.js
voom-presenters-0.1.12 views/mdc/webpack.config.js
voom-presenters-0.1.11 views/mdc/webpack.config.js
voom-presenters-0.1.10 views/mdc/webpack.config.js
voom-presenters-0.1.9 views/mdc/webpack.config.js
voom-presenters-0.1.8 views/mdc/webpack.config.js
voom-presenters-0.1.7 views/mdc/webpack.config.js
voom-presenters-0.1.6 views/mdc/webpack.config.js
voom-presenters-0.1.5 views/mdc/webpack.config.js
voom-presenters-0.1.4 views/mdc/webpack.config.js
voom-presenters-0.1.3 views/mdc/webpack.config.js
voom-presenters-0.1.2 views/mdc/webpack.config.js
voom-presenters-0.1.1 views/mdc/webpack.config.js
voom-presenters-0.1.0 views/mdc/webpack.config.js