forked from Kitware/simput
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
36 lines (35 loc) · 876 Bytes
/
webpack.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
var path = require('path'),
loaders = require('./node_modules/paraviewweb/config/webpack.loaders.js');
module.exports = {
plugins: [],
entry: './src/index.js',
output: {
path: './dist',
filename: 'Simput.js',
},
module: {
preLoaders: [
{
test: /\.js$/,
loader: "eslint-loader",
exclude: /node_modules/,
},
],
loaders: [
{ test: require.resolve("./src/index.js"), loader: "expose?Simput" },
].concat(loaders),
},
resolve: {
alias: {
'PVWStyle/ReactProperties/PropertyPanel.mcss': path.resolve('./style/PropertyPanel.mcss'),
PVWStyle: path.resolve('./node_modules/paraviewweb/style'),
SimputStyle: path.resolve('./style'),
},
},
postcss: [
require('autoprefixer')({ browsers: ['last 2 versions'] }),
],
eslint: {
configFile: '.eslintrc.js',
},
};