2018-03-21 00:29:00 +01:00
|
|
|
const path = require('path');
|
|
|
|
const webpack = require('webpack');
|
|
|
|
|
2018-01-22 11:16:23 +01:00
|
|
|
const vueLoader = {
|
|
|
|
test: /\.(vue)$/,
|
|
|
|
exclude: /node_modules/,
|
|
|
|
loader: 'vue-loader'
|
2018-03-21 00:29:00 +01:00
|
|
|
};
|
2018-01-22 11:16:23 +01:00
|
|
|
|
|
|
|
const scssLoader = {
|
|
|
|
test: /\.(css|scss)$/,
|
|
|
|
loader: ['css-loader', 'sass-loader']
|
2018-03-21 00:29:00 +01:00
|
|
|
};
|
2018-01-22 11:16:23 +01:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
entry: './src/index.js',
|
|
|
|
output: {
|
|
|
|
path: path.resolve(__dirname, 'dist'),
|
|
|
|
filename: 'csseditor.js'
|
|
|
|
},
|
|
|
|
module: {
|
|
|
|
loaders: [vueLoader, scssLoader]
|
|
|
|
},
|
2018-03-21 00:29:00 +01:00
|
|
|
externals: {
|
|
|
|
electron: 'window.require("electron")',
|
2018-05-21 17:41:41 +02:00
|
|
|
fs: 'window.require("fs")',
|
2018-07-21 22:03:47 +02:00
|
|
|
util: 'window.require("util")',
|
|
|
|
process: 'require("process")'
|
2018-03-21 00:29:00 +01:00
|
|
|
},
|
2018-01-22 11:16:23 +01:00
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
vue$: path.resolve('..', 'node_modules', 'vue', 'dist', 'vue.esm.js')
|
2018-03-21 00:29:00 +01:00
|
|
|
},
|
|
|
|
modules: [
|
|
|
|
path.resolve('..', 'node_modules'),
|
|
|
|
path.resolve('..', 'common', 'modules')
|
|
|
|
]
|
2018-01-22 11:16:23 +01:00
|
|
|
}
|
2018-02-13 20:56:01 +01:00
|
|
|
};
|