Add, configure Webpack loaders for styles, files

Signed-off-by: Alex Coles <alex@alexbcoles.com>
pull/2263/head
Alex Coles 10 years ago
parent f526d47d29
commit 9e6bc41754
  1. 4
      frontend/package.json
  2. 4
      frontend/webpack.config.js

@ -39,11 +39,15 @@
"dependencies": {
"URIjs": "^1.14.1",
"bower": "~1.3.8",
"css-loader": "^0.9.0",
"exports-loader": "^0.6.2",
"expose-loader": "^0.6.0",
"file-loader": "^0.8.1",
"json-loader": "^0.5.1",
"lodash": "^2.4.1",
"shelljs": "^0.3.0",
"style-loader": "^0.8.2",
"url-loader": "^0.5.5",
"webpack": "^1.4.9",
"yaml-loader": "^0.1.0"
},

@ -32,6 +32,10 @@ module.exports = {
{ test: /[\/]jquery\.js$/, loader: 'expose?jQuery' },
{ test: /[\/]moment\.js$/, loader: 'expose?moment' },
{ test: /[\/]vendor[\/]i18n\.js$/, loader: 'expose?I18n' },
{ test: /\.css$/, loader: 'style-loader!css-loader' },
{ test: /\.png$/, loader: 'url-loader?limit=100000&mimetype=image/png' },
{ test: /\.gif$/, loader: 'file-loader' },
{ test: /\.jpg$/, loader: 'file-loader' },
{ test: /js-[\w|-]{2,5}\.yml$/, loader: 'json!yaml' }
]
},

Loading…
Cancel
Save