Advertisement
Guest User

Untitled

a guest
Feb 21st, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. // <binding BeforeBuild='Run - Development' />
  2. "use strict";
  3. let webpack = require('webpack');
  4. let path = require('path');
  5. let ExtractTextPlugin = require('extract-text-webpack-plugin');
  6. module.exports = {
  7. context: __dirname + "/",
  8. entry: {
  9. main: './xxxxxx/lib/index.js',
  10. styles: './xxxx/css/style.js'
  11. },
  12. output: {
  13. filename: "[name].index.js",
  14. path: __dirname + '/xxxxxx/build'
  15. },
  16. module: {
  17. loaders: [
  18. {
  19. test: /\.js?$/,
  20. exclude: /(node_modules|bower_components)/,
  21. loader: 'babel-loader', // 'babel-loader' is also a legal name to reference
  22. query: {
  23. presets: ['es2015']
  24. }
  25. },
  26. {
  27. test: /\.scss$/,
  28. loader: ExtractTextPlugin.extract({ fallback: 'style-loader', use: 'css-loader!postcss-loader!sass-loader' })
  29. }
  30. ]
  31. },
  32.  
  33.  
  34.  
  35.  
  36.  
  37. devtool: '#source-map',
  38. plugins: [
  39. new webpack.IgnorePlugin(/locale/, /moment$/),
  40. new ExtractTextPlugin("/style.css"),
  41. new webpack.LoaderOptionsPlugin({debug: true})
  42. ]
  43. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement