Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add file and url loaders #129

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

chore(webpack): Add file and url loaders

This is needed in order to easily add bootstrap or any other UI toolkit
  • Loading branch information...
fesor committed Apr 11, 2016
commit d6306f76c587fb0890e6e8b2d4de203a77dd2157
@@ -17,6 +17,7 @@
"chai": "^3.4.0",
"connect-history-api-fallback": "^1.1.0",
"css-loader": "^0.19.0",
"file-loader": "^0.8.5",
"fs-walk": "0.0.1",
"gulp": "^3.9.0",
"gulp-rename": "^1.2.2",
@@ -38,6 +39,7 @@
"style-loader": "^0.12.2",
"stylus-loader": "^1.1.1",
"supports-color": "^3.1.2",
"url-loader": "^0.5.7",
"webpack": "^1.9.5",
"webpack-dev-middleware": "^1.6.1",
"webpack-hot-middleware": "^2.6.0",
@@ -8,6 +8,11 @@ module.exports = {
module: {
loaders: [
{ test: /\.js$/, exclude: [/app\/lib/, /node_modules/], loader: 'ng-annotate!babel' },
{ test: /\.(png)$/, loader: 'url-loader?limit=100000' },
{ test: /\.woff(2)?(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=application/font-woff" },
{ test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=application/octet-stream" },
{ test: /\.eot(\?v=\d+\.\d+\.\d+)?$/, loader: "file" },
{ test: /\.svg(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=image/svg+xml" },
{ test: /\.html$/, loader: 'raw' },
{ test: /\.styl$/, loader: 'style!css!stylus' },
{ test: /\.css$/, loader: 'style!css' }
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.