Created
August 16, 2017 19:18
-
-
Save Smolations/8728568711fddaefec76f5dd37e14814 to your computer and use it in GitHub Desktop.
Webpack config
This file contains 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 path = require('path'); | |
module.exports = { | |
entry: { | |
toolkitStandalone: ['./src/main.es6.js'], | |
}, | |
devtool: 'source-map', | |
output: { | |
path: path.resolve('./dist'), | |
library: '[name]', | |
libraryTarget: 'umd', | |
filename: '[name].js' | |
}, | |
module: { | |
rules: [ | |
{ | |
test: /\.js$/, | |
loader: 'babel-loader', | |
query: { | |
presets: ['es2015'] | |
} | |
}, | |
{ | |
test: /\.css$/, | |
loader: "style-loader!css-loader" | |
} | |
] | |
}, | |
resolve: { | |
alias: { | |
'angular-translate-loader-static-files': path.resolve(__dirname, 'node_modules/angular-translate/dist/angular-translate-loader-static-files/angular-translate-loader-static-files.min.js'), | |
'angular-translate-interpolation-messageformat': path.resolve(__dirname, 'node_modules/angular-translate/dist/angular-translate-interpolation-messageformat/angular-translate-interpolation-messageformat.min.js') | |
} | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment