mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 04:28:41 -09:00
* master: (62 commits) 1.4.3 Disable ia32 linux releases (#2164) Fixed writing composed characters (#2158) Doc: Add yarn install to contribute instructions (#2117) Change "Close Session" shortcut on Linux/Windows (#2160) Notice for plugins (#2114) Updated dependencies to the latest version (#2146) 1.4.2 Reverted class names to as they were before (#2139) 1.4.1 AppVeyor environment variables are now on the platform (#2137) Brought back the icon for closing tabs (#2136) Brought back keymap documentation to the website (#2133) 1.4.0 Don't build on master, except for releases (#2132) Ensured that `async-retry` is added to the bundle (#2131) Ensure correct update channel is displayed in About window (#2130) Retry loading it if config doesn't exist in auto updater (#2129) Write contents of default config to hyper.js (#2128) Use a string for setting the update channel (#2127) ...
51 lines
1 KiB
JavaScript
51 lines
1 KiB
JavaScript
const path = require('path');
|
|
|
|
const webpack = require('webpack');
|
|
const Copy = require('copy-webpack-plugin');
|
|
|
|
const nodeEnv = process.env.NODE_ENV || 'development';
|
|
const isProd = nodeEnv === 'production';
|
|
|
|
module.exports = {
|
|
resolve: {
|
|
extensions: ['.js', '.jsx']
|
|
},
|
|
devtool: isProd ? 'hidden-source-map' : 'cheap-module-source-map',
|
|
entry: './lib/index.js',
|
|
output: {
|
|
path: path.join(__dirname, 'app', 'renderer'),
|
|
filename: 'bundle.js'
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.(js|jsx)$/,
|
|
exclude: /node_modules/,
|
|
loader: 'babel-loader'
|
|
},
|
|
{
|
|
test: /\.json/,
|
|
loader: 'json-loader'
|
|
},
|
|
// for xterm.js
|
|
{
|
|
test: /\.css$/,
|
|
loader: 'style-loader!css-loader'
|
|
}
|
|
]
|
|
},
|
|
plugins: [
|
|
new webpack.DefinePlugin({
|
|
'process.env': { // eslint-disable-line quote-props
|
|
NODE_ENV: JSON.stringify(nodeEnv)
|
|
}
|
|
}),
|
|
new Copy([
|
|
{
|
|
from: './assets',
|
|
to: './assets'
|
|
}
|
|
])
|
|
],
|
|
target: 'electron'
|
|
};
|