mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			39 lines
		
	
	
		
			754 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			754 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| // docs: http://webpack.github.io/docs/configuration.html
 | |
| 
 | |
| 'use strict';
 | |
| 
 | |
| const path = require('path');
 | |
| const root = path.normalize(path.join(__dirname, '.'));
 | |
| const jsroot = path.join(path.join(root, 'public'), 'js');
 | |
| 
 | |
| module.exports = {
 | |
| 
 | |
|     context: jsroot,
 | |
|     entry: 'app',
 | |
| 
 | |
|     output: {
 | |
|         path: jsroot,
 | |
|         filename: 'bundle.js',
 | |
|         publicPath: '/js/',
 | |
|     },
 | |
| 
 | |
|     resolve: {
 | |
|         root: [jsroot],
 | |
|         extensions: ['', '.js', '.jsx'],
 | |
|         modulesDirectories: ['web_modules', 'node_modules'],
 | |
|     },
 | |
| 
 | |
|     module: {
 | |
|         loaders: [
 | |
|             { test: /\.jsx$/, loader: 'jsx?harmony' },
 | |
|         ],
 | |
|     },
 | |
| 
 | |
|     devtool: 'source-map',
 | |
| 
 | |
|     externals: {
 | |
|         // stuff not in node_modules can be resolved here.
 | |
|     },
 | |
| 
 | |
| };
 |