Skip to content

Commit

Permalink
refact(-): add css loader and modulize css
Browse files Browse the repository at this point in the history
  • Loading branch information
CoderK committed Sep 3, 2016
1 parent a88725d commit a0dcf03
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
7 changes: 0 additions & 7 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
"tabs"
],

"web_accessible_resources": [
"./resources/css/gfe.css"
],

"content_scripts": [
{
"matches": [
Expand All @@ -25,9 +21,6 @@
"js": [
"./dist/bundle.js"
],
"css": [
"./resources/css/gfe.css"
],
"run_at": "document_idle"
}
],
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"babel-core": "^6.14.0",
"babel-loader": "^6.2.5",
"babel-preset-es2015": "^6.14.0",
"css-loader": "^0.24.0",
"lodash-template-webpack-loader": "^1.0.2",
"style-loader": "^0.13.1",
"webpack": "^1.13.2"
},
"scripts": {
Expand Down
File renamed without changes.
2 changes: 2 additions & 0 deletions src/filter/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import intent from './intent';
import model from './model';
import view from './view';

require("./css/gfe.css");

function main(props) {
const actions = intent(props);
const state$ = model(actions, props);
Expand Down
1 change: 1 addition & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ module.exports = {
devtool: env === 'production' ? false : 'inline-source-map',
module: {
loaders: [
{ test: /\.css$/, loader: "style-loader!css-loader" },
{
test: /\.js$/,
loader: 'babel',
Expand Down

0 comments on commit a0dcf03

Please sign in to comment.