forked from GamesDoneQuick/donation-tracker-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtracker_admin.webpack.js
More file actions
executable file
·38 lines (37 loc) · 1.22 KB
/
tracker_admin.webpack.js
File metadata and controls
executable file
·38 lines (37 loc) · 1.22 KB
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
37
38
var path = require('path');
var webpack = require('webpack');
var autoprefixer = require('autoprefixer');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var sharedConfig = require('./shared.webpack')({hmr: true});
var WebpackManifestPlugin = require('webpack-yam-plugin');
module.exports = {
context: __dirname,
entry: ['./js/init', './js/admin'],
output: {
'filename': 'admin.js',
'pathinfo': true,
'path': __dirname + '/static/gen',
'publicPath': '/webpack',
},
module: sharedConfig.module,
plugins: [
new webpack.optimize.OccurrenceOrderPlugin(),
new webpack.NoErrorsPlugin(),
new WebpackManifestPlugin({
manifestPath: __dirname + '/ui-admin.manifest.json',
outputRoot: __dirname + '/static'
}),
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: JSON.stringify('development')
},
__DEVTOOLS__: true,
}),
new ExtractTextPlugin("admin.css", {
allChunks: true
}),
],
devServer: sharedConfig.devServer,
resolve: sharedConfig.resolve,
devtool: 'eval-source-map',
};