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