Skip to content

Instantly share code, notes, and snippets.

@kyo-ago
Created April 16, 2018 12:37
Show Gist options
  • Save kyo-ago/5fa708f862afab3f2b03a20a1fe5eef4 to your computer and use it in GitHub Desktop.
Save kyo-ago/5fa708f862afab3f2b03a20a1fe5eef4 to your computer and use it in GitHub Desktop.
{
"context": "/Users/kyo/projects/lifter/packages/lifter-app",
"devtool": "nosources-source-map",
"externals": [
"@lifter/electron-window-manager",
"@lifter/lifter-common",
"@lifter/lifter-main",
"@lifter/networksetup-proxy",
"electron-context-menu",
"electron-ipc",
"electron-localshortcut",
"electron-unhandled",
"electron-window-state",
"element-ui",
"execa",
"http-mitm-proxy",
"ifconfig",
"melanke-watchjs",
"micromatch",
"mime",
"monapt",
"nedb",
"rxjs",
"source-map-support",
"stat-mode",
"sudo-prompt",
"typescript-dddbase",
"vue-i18n",
"vuex",
"webpack-merge",
"electron",
"webpack",
"electron-devtools-installer"
],
"node": {
"__dirname": false,
"__filename": false
},
"output": {
"filename": "[name].js",
"chunkFilename": "[name].bundle.js",
"libraryTarget": "commonjs2",
"path": "/Users/kyo/projects/lifter/packages/lifter-app/dist/renderer"
},
"target": "electron-renderer",
"resolve": {
"alias": {
"@": "/Users/kyo/projects/lifter/packages/lifter-app/src/renderer",
"common": "/Users/kyo/projects/lifter/packages/lifter-app/src/common",
"vue$": "vue/dist/vue.esm.js",
"vue-router$": "vue-router/dist/vue-router.esm.js"
},
"extensions": [
".js",
".ts",
".tsx",
".json",
".node",
".css",
".vue"
]
},
"module": {
"rules": [
{
"test": "/\\.js$/",
"exclude": "/(node_modules|bower_components)/",
"use": {
"loader": "babel-loader",
"options": {
"presets": [
[
{
"__esModule": true
},
{
"modules": false,
"targets": {
"electron": "1.8.4"
}
}
]
],
"plugins": [
null,
[
null,
[
{
"libraryName": "element-ui",
"styleLibraryName": "theme-chalk"
}
]
]
]
}
}
},
{
"test": "/\\.node$/",
"use": "node-loader"
},
{
"test": "/\\.css$/",
"use": [
{
"loader": "/Users/kyo/projects/lifter/packages/lifter-app/node_modules/extract-text-webpack-plugin/dist/loader.js",
"options": {
"omit": 1,
"remove": true
}
},
{
"loader": "style-loader"
},
{
"loader": "css-loader"
}
]
},
{
"test": "/\\.less$/",
"use": [
{
"loader": "/Users/kyo/projects/lifter/packages/lifter-app/node_modules/extract-text-webpack-plugin/dist/loader.js",
"options": {
"omit": 1,
"remove": true
}
},
{
"loader": "style-loader"
},
{
"loader": "css-loader"
},
{
"loader": "less-loader"
}
]
},
{
"test": "/\\.scss/",
"use": [
{
"loader": "/Users/kyo/projects/lifter/packages/lifter-app/node_modules/extract-text-webpack-plugin/dist/loader.js",
"options": {
"omit": 1,
"remove": true
}
},
{
"loader": "style-loader"
},
{
"loader": "css-loader"
},
{
"loader": "sass-loader"
}
]
},
{
"test": "/\\.(png|jpe?g|gif|svg)(\\?.*)?$/",
"use": {
"loader": "url-loader",
"options": {
"limit": 10240,
"name": "imgs/[name]--[folder].[ext]"
}
}
},
{
"test": "/\\.(mp4|webm|ogg|mp3|wav|flac|aac)(\\?.*)?$/",
"loader": "url-loader",
"options": {
"limit": 10240,
"name": "media/[name]--[folder].[ext]"
}
},
{
"test": "/\\.(woff2?|eot|ttf|otf)(\\?.*)?$/",
"use": {
"loader": "url-loader",
"options": {
"limit": 10240,
"name": "fonts/[name]--[folder].[ext]"
}
}
},
{
"test": "/\\.html$/",
"use": "vue-html-loader"
},
{
"test": "/\\.vue$/",
"use": [
{
"loader": "vue-loader",
"options": {
"extractCSS": true,
"loaders": {
"sass": "vue-style-loader!css-loader!sass-loader?indentedSyntax=1",
"scss": "vue-style-loader!css-loader!sass-loader",
"i18n": "@kazupon/vue-i18n-loader"
}
}
}
]
},
{
"test": "/\\.tsx?$/",
"exclude": "/node_modules/",
"use": [
{
"loader": "ts-loader",
"options": {
"transpileOnly": false,
"appendTsSuffixTo": [
"/\\.vue$/"
],
"configFile": "/Users/kyo/projects/lifter/packages/lifter-app/tsconfig.json"
}
}
]
}
]
},
"plugins": [
{
"options": {
"moduleName": "/__virtual__/renderer-index.html",
"contents": "\n<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"utf-8\">\n \n <script>\n \n require(\"source-map-support/source-map-support.js\").install()\n </script>\n \n \n </head>\n <body>\n <div id=\"app\"></div>\n </body>\n</html>"
}
},
{
"options": {
"template": "!!html-loader?minimize=false!/__virtual__/renderer-index.html",
"filename": "index.html",
"hash": false,
"inject": true,
"compile": true,
"favicon": false,
"minify": false,
"cache": true,
"showErrors": true,
"chunks": "all",
"excludeChunks": [],
"title": "Webpack App",
"xhtml": false,
"nodeModules": null
}
},
{
"definitions": {
"__static": "\"/Users/kyo/projects/lifter/packages/lifter-app/static\""
}
},
{
"filename": "styles.css",
"id": 1,
"options": {}
},
{
"options": {
"test": "/\\.js(\\?.*)?$/i",
"extractComments": false,
"sourceMap": true,
"cache": false,
"parallel": true,
"uglifyOptions": {
"output": {
"comments": "/^\\**!|@preserve|@license|@cc_on/"
},
"compress": {
"ecma": 7
}
}
}
},
{
"definitions": {
"process.env.NODE_ENV": "\"production\""
}
},
{
"options": {
"minimize": true,
"test": {}
}
},
{
"options": {}
},
{
"dllManifest": null
},
{}
],
"entry": {
"renderer": [
"/Users/kyo/projects/lifter/packages/lifter-app/node_modules/electron-webpack/vue-renderer-entry.js",
"/Users/kyo/projects/lifter/packages/lifter-app/src/renderer/index.ts"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment