UNPKG

webpack-closure-compiler

Version:
32 lines (29 loc) 647 B
var path = require('path'); var ClosureCompilerPlugin = require('../index'); const concurrency = require('os').cpus().length; module.exports = { entry: path.join(__dirname, 'entry.js'), output: { path: path.join(__dirname, '/'), filename: 'bundle.js' }, module: { loaders: [ { test: /\.css$/, loader: 'css-loader' } ] }, plugins: [ new ClosureCompilerPlugin({ compiler: { language_in: 'ECMASCRIPT6', language_out: 'ECMASCRIPT5', compilation_level: 'ADVANCED', externs: [path.join(__dirname, 'externs.js')] }, concurrency }) ] };