Skip to content

Commit

Permalink
PDF base template
Browse files Browse the repository at this point in the history
  • Loading branch information
jscott1989 committed Jul 30, 2016
1 parent 43d882e commit a97d6cd
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
"eslint-plugin-import": "^1.8.0",
"eslint-plugin-jsx-a11y": "^1.2.0",
"eslint-plugin-react": "^5.1.1",
"extract-text-webpack-plugin": "^1.0.1",
"file-loader": "^0.8.5",
"imports-loader": "^0.6.5",
"node-sass": "^3.7.0",
Expand Down
13 changes: 13 additions & 0 deletions src/templates/pdf/base.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{% load staticfiles %}
<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="{% static "bundles/style.css" %}">
</head>
<body>
{% block content %}

{% endblock %}
</body>
</html>
10 changes: 10 additions & 0 deletions src/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const path = require('path');
const webpack = require('webpack');
const ExtractTextPlugin = require("extract-text-webpack-plugin");

module.exports = {
context: __dirname,
Expand Down Expand Up @@ -29,10 +30,19 @@ module.exports = {
test: /\.((ttf|eot)(\?v=[0-9]\.[0-9]\.[0-9]))|(ttf|eot)$/,
loader: 'file',
},
{
test: /\.scss$/,
loader: ExtractTextPlugin.extract(
"style",
"css!sass")
}
],
},

plugins: [
new ExtractTextPlugin("style.css", {
allChunks: true
})
// new webpack.optimize.UglifyJsPlugin({
// compress: {
// warnings: false,
Expand Down

0 comments on commit a97d6cd

Please sign in to comment.