How to use the electron-to-chromium.electronToBrowserList function in electron-to-chromium

To help you get started, we’ve selected a few electron-to-chromium examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github vardius / webrtc-chat / webpack / webpack.config.base.js View on Github external
// Common Webpack configuration used by webpack.config.development and webpack.config.production

const path = require("path");
const webpack = require("webpack");
const autoprefixer = require("autoprefixer");
const e2c = require("electron-to-chromium");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const ExtractTextPlugin = require("extract-text-webpack-plugin");

const postcssLoaderOptions = {
  plugins: [
    autoprefixer({
      browsers: e2c.electronToBrowserList("1.4")
    })
  ]
};

module.exports = {
  output: {
    filename: "js/[name].[chunkhash].js",
    path: path.resolve(__dirname, "../build"),
    publicPath: "/"
  },
  resolve: {
    modules: ["node_modules"],
    alias: {
      client: path.join(__dirname, "../src/client"),
      server: path.join(__dirname, "../src/server")
    },
github vardius / web-components-webpack-es6-boilerplate / webpack / webpack.config.base.js View on Github external
// Common Webpack configuration used by webpack.config.development and webpack.config.production

const path = require('path');
const webpack = require('webpack');
const autoprefixer = require('autoprefixer');
const e2c = require('electron-to-chromium');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');

const postcssLoaderOptions = {
  plugins: [
    autoprefixer({
      browsers: e2c.electronToBrowserList('1.4')
    }),
  ]
};

module.exports = {
  output: {
    filename: 'js/[name].[chunkhash].js',
    path: path.resolve(__dirname, '../build'),
    publicPath: '/'
  },
  resolve: {
    modules: ['node_modules'],
    alias: {
      client: path.join(__dirname, '../src/client'),
      server: path.join(__dirname, '../src/server')
    },

electron-to-chromium

Provides a list of electron-to-chromium version mappings

ISC
Latest version published 3 days ago

Package Health Score

77 / 100
Full package analysis