mirror of
				https://github.com/Telecominfraproject/wlan-cloud-ui.git
				synced 2025-10-31 18:57:59 +00:00 
			
		
		
		
	npm link development working & improved webpack
This commit is contained in:
		
							
								
								
									
										46
									
								
								webpack/webpack.common.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										46
									
								
								webpack/webpack.common.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,46 @@ | ||||
| const HtmlWebPackPlugin = require('html-webpack-plugin'); | ||||
| const commonPaths = require('./paths'); | ||||
|  | ||||
| module.exports = { | ||||
|   mode: process.env.NODE_ENV, | ||||
|   entry: ['babel-polyfill', commonPaths.entryPath], | ||||
|   module: { | ||||
|     rules: [ | ||||
|       { | ||||
|         test: /\.(png|jpe?g|gif)$/i, | ||||
|         use: [ | ||||
|           { | ||||
|             loader: 'file-loader', | ||||
|           }, | ||||
|         ], | ||||
|       }, | ||||
|       { | ||||
|         test: /\.(js|jsx)$/, | ||||
|         exclude: /node_modules/, | ||||
|         use: ['babel-loader', 'eslint-loader'], | ||||
|       }, | ||||
|       { | ||||
|         test: /\.less$/, | ||||
|         use: [ | ||||
|           { | ||||
|             loader: 'style-loader', | ||||
|           }, | ||||
|           { | ||||
|             loader: 'css-loader', | ||||
|           }, | ||||
|           { | ||||
|             loader: 'less-loader', | ||||
|             options: { | ||||
|               javascriptEnabled: true, | ||||
|             }, | ||||
|           }, | ||||
|         ], | ||||
|       }, | ||||
|     ], | ||||
|   }, | ||||
|   plugins: [ | ||||
|     new HtmlWebPackPlugin({ | ||||
|       template: commonPaths.templatePath, | ||||
|     }), | ||||
|   ], | ||||
| }; | ||||
		Reference in New Issue
	
	Block a user
	 Sean Macfarlane
					Sean Macfarlane