UNPKG

custom_dialogs

Version:

Удобное диалоговое окно

60 lines (54 loc) 1.55 kB
const webpack = require('webpack'); const path = require('path'); const UglifyJSPlugin = require('uglifyjs-webpack-plugin'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); module.exports = { entry: { 'modals': [ 'babel-polyfill', './src/index.js', './example/index.js' ], }, output: { filename: 'js/[name].js', chunkFilename: 'js/[name].js', path: path.resolve(__dirname, '../assets') }, module: { rules: [ { test: /\.js$/, exclude: /node_modules/, loader: 'babel-loader', options: { presets: ['env'] } }, { test: /\.(scss|css)$/, use: ExtractTextPlugin.extract({ use: [ { loader: 'css-loader', options: { sourceMap: true } }, { loader: 'sass-loader', options: { sourceMap: true } } ], fallback: 'style-loader' }) } ] }, plugins: [ new UglifyJSPlugin(), new ExtractTextPlugin('style/[name].css'), ] };