Created
October 1, 2017 03:46
-
-
Save tkssharma/b43d7f0c4a0a249f23c80630e5f94abc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var webpack = require('webpack'); | |
module.exports = { | |
entry: { | |
'vendor': './src/vendor.ts', | |
'polyfills': './src/polyfills.ts', | |
'app': './src/main.ts' | |
}, | |
resolve: { | |
extensions: ['', '.js', '.ts'] | |
}, | |
output: { | |
path: './dist', | |
filename: "[name]_bundle.js", | |
publicPath: '/' | |
}, | |
devServer: { | |
contentBase: "./dist", | |
port : 8089 | |
}, | |
module: { | |
loaders: [ | |
{ | |
test: /\.ts$/, | |
loaders: ['awesome-typescript-loader', 'angular2-template-loader'] | |
}, | |
{ | |
test: /\.html$/, | |
loader: 'html' | |
}, | |
{ | |
test: /\.(png|jpe?g|gif|svg|woff|woff2|ttf|eot|ico)$/, | |
loader: 'file?name=assets/[name].[hash].[ext]' | |
}, | |
{ | |
test: /\.css$/, | |
exclude: /node_modules/, | |
loader: "style-loader!css-loader" | |
}, { | |
test: /\.scss$/, | |
exclude: /node_modules/, | |
loader: "style-loader!css-loader!sass-loader" | |
}, { | |
test: /\.less?$/, | |
loaders: [ | |
'style-loader', 'css-loader', 'less-loader?{"sourceMap":true}' | |
], | |
include: __dirname | |
}, | |
{ test: /\.css$/, loader: 'to-string-loader!css-loader' }, | |
] | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment