/
githubmirror
/
Front-End-Checklist
Обзор
Документация
Войти
/
githubmirror
/
Front-End-Checklist
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v1.0
webpack.config.js
32 строки
618 B
David Dias
🌟First commit Front-End Checklist App 🌟
15 ноя 2017, 04:25
15 ноя 2017, 04:25
d7fdb86
Код
Авторство
О чём код?
const webpack = require('webpack'); const path = require('path'); const mainPath = path.resolve(__dirname, 'src/scripts', 'main.js'); const UglifyJSPlugin = require('uglifyjs-webpack-plugin') module.exports = { cache: true, entry: { app: mainPath }, output: { filename: '[name].bundle.js', }, module: { rules: [ { test: /\.js$/, exclude: /node_modules/, loader: 'babel-loader' } ] }, plugins: [ new webpack.optimize.UglifyJsPlugin({ compress: { warnings: false } }) ] };